Comment 9 for bug 307961

Revision history for this message
Noel J. Bergman (noeljb) wrote :

> If you look at the plugin you will see what I mean.

Yes, I had looked at it. And now I have a patch for you, which I'm attaching.

The output before the patch is:

$ ./dstat~ --disk -D total,sda,sda8,sda10
-dsk/total----dsk/sda-----dsk/sda8---dsk/sda10-
 read writ: read writ: read writ: read writ
 454k 467k: 227k 233k: 13k 20k: 214k 213k
8192B 0 :4096B 0 : 0 0 :4096B 0
8192B 0 :4096B 0 : 0 0 :4096B 0
8192B 0 :4096B 0 : 0 0 :4096B 0
   0 8192B: 0 4096B: 0 4096B: 0 0
8192B 64k:4096B 32k: 0 32k:4096B 0
   0 112k: 0 56k: 0 56k: 0 0

The result after the patch is:

$ ./dstat --disk -D total,sda,sda8,sda10
-dsk/total----dsk/sda-----dsk/sda8---dsk/sda10-
 read writ: read writ: read writ: read writ
 227k 234k: 227k 234k: 13k 20k: 214k 213k
   0 1060k: 0 1060k: 0 76k: 0 984k
   0 64k: 0 64k: 0 64k: 0 0

The patch, itself, just enhances the regex to filter out partitions when computing the total stat.