zhaog / aspersa

Automatically exported from code.google.com/p/aspersa
0 stars 0 forks source link

diskstats -n doesn't seem to work right #104

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r359.

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