Commit 105d51fc authored by Mike Hibler's avatar Mike Hibler

Fix a conversion error when determining the clock resolution.

parent 38f40bca
......@@ -82,7 +82,7 @@ sleeptime(unsigned int usecs, char *str, int doround)
if (res.tv_nsec < 1000000)
clockres_us = 1000;
else
clockres_us = (res.tv_nsec / 1000) * 1000;
clockres_us = (res.tv_nsec / 1000000) * 1000;
}
else
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment