]> arthur.barton.de Git - netdata.git/blobdiff - src/plugin_proc.c
handle usleep() on systems that do not accept more than 999999 usec; implement altern...
[netdata.git] / src / plugin_proc.c
index 0e2d9c1227018b513317f009fe64677fd104f905..e7b8d50c87d64c2695c4b63373eb92418f496cdf 100644 (file)
@@ -90,7 +90,7 @@ void *proc_main(void *ptr)
 
                // delay until it is our time to run
                while((sunow = timems()) < sunext)
-                       usleep((useconds_t)(sunext - sunow));
+                       usecsleep(sunext - sunow);
 
                // find the next time we need to run
                while(timems() > sunext)