diff options
author | Rémi Lefèvre <remi.lefevre@parrot.com> | 2016-12-09 17:12:44 +0100 |
---|---|---|
committer | Rémi Lefèvre <remi.lefevre@parrot.com> | 2016-12-11 11:51:58 +0100 |
commit | 3b8cfeecd6ee3d94452315a5bb6525ddea06caff (patch) | |
tree | 78a00290e1b15d979bf28d3a30b86b34e39b1785 /src/health.c | |
parent | b99c76d78e0038c184c76815a68bf8846f574b4c (diff) |
use usec_t for microseconds time variables
Also use USEC_PER_SEC for seconds to microseconds conversions.
Signed-off-by: Rémi Lefèvre <remi.lefevre@parrot.com>
Diffstat (limited to 'src/health.c')
-rwxr-xr-x | src/health.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/health.c b/src/health.c index c14c29d873..849a3faf96 100755 --- a/src/health.c +++ b/src/health.c @@ -3101,7 +3101,7 @@ void *health_main(void *ptr) { if(now < next_run) { debug(D_HEALTH, "Health monitoring iteration no %u done. Next iteration in %d secs", loop, (int) (next_run - now)); - sleep_usec(1000000 * (unsigned long long) (next_run - now)); + sleep_usec(USEC_PER_SEC * (usec_t) (next_run - now)); } else { debug(D_HEALTH, "Health monitoring iteration no %u done. Next iteration now", loop); |