Fix error report to reflect the fact that clock_gettime returns 0 or -1 with error code in errno.

This commit is contained in:
W. Eric Norum
2002-06-21 21:11:08 +00:00
parent add1c8182d
commit 0e4d76e68c
+1 -1
View File
@@ -78,7 +78,7 @@ extern "C" epicsShareFunc void epicsShareAPI
else if(timeout>3600.0) timeout = 3600.0;
status = clock_gettime(CLOCK_REALTIME,wakeTime);
if(status) {
printf("clock_gettime failed with error %s\n",strerror(status));
printf("clock_gettime failed with error %s\n",strerror(errno));
cantProceed("convertDoubleToWakeTime");
}
wait.tv_sec = timeout;