Brian Fraser
7c4c186978
Change how Diskstats waits for its first handful of samples.
...
This fixes two bugs -- One a rounding error, one a desyncronization
between the main program and the data gathering daemon.
Additionally, it changes how the daemon prints the very first
sample. Before it would unconditionally wait until the time was
%$sample-time, which meant that in a worst case scenario,
a user could be left waiting for a while before seeing a line
of output.
This commit changes that first wait to only sleep if less
than 20% away from %$sample-time.
2012-02-01 12:14:09 -03:00
..
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2012-01-31 22:44:00 -03:00
2012-01-30 17:44:18 -03:00
2012-02-01 12:14:09 -03:00
2012-02-01 12:14:09 -03:00
2012-02-01 12:14:09 -03:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-08-23 08:29:47 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-09-12 08:14:57 -06:00
2011-09-01 09:01:34 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-11-08 12:53:50 -07:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-11-08 12:53:50 -07:00
2011-07-12 15:47:07 -06:00
2011-07-12 16:40:00 -06:00
2011-07-12 15:47:07 -06:00
2012-01-18 19:01:19 -03:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-09-12 10:53:53 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-09-09 11:50:19 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-09-10 13:46:55 -06:00
2011-08-27 11:17:28 -06:00
2011-09-09 11:50:19 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00
2011-07-12 15:47:07 -06:00