claytondukes/aspersa

diskstats -n doesn't seem to work right

Closed this issue · 1 comments

It seems to gather more samples than needed:

[root@db-primary02 ~]# diskstats -n 3 -k diskstats.txt
[root@db-primary02 ~]# grep TS diskstats.txt 
TS 1298130003.071357000
TS 1298130003.073935000
TS 1298130004.088149000
TS 1298130005.102035000
TS 1298130006.116158000
TS 1298130007.131062000
TS 1298130008.145277000
[root@db-primary02 ~]# grep -c sda3 diskstats.txt 
6

It should capture N+1 samples of data.

Original issue reported on code.google.com by baron.schwartz on 19 Feb 2011 at 3:41

This issue was closed by revision r359.

Original comment by baron.schwartz on 19 Feb 2011 at 4:08

  • Changed state: Fixed