> 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.

** Attachment added: "Updated regex to fix the doubling of disk stat totals 
(LP: 307961)"
   http://launchpadlibrarian.net/20451837/disktotals.patch

-- 
Disk total stats are double
https://bugs.launchpad.net/bugs/307961
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

-- 
universe-bugs mailing list
universe-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/universe-bugs

Reply via email to