scottchiefbaker / dool

Python3 compatible fork of dstat
GNU General Public License v3.0
315 stars 58 forks source link

Correctly report disk stats for NVME drives #49

Closed scottchiefbaker closed 10 months ago

scottchiefbaker commented 10 months ago

Disk stats for nvme disks were being reported incorrectly. Previously ALL partitions were being added to total:

  1. nvme0n1
  2. nvme0n1p1
  3. nvme0n1p2
  4. nvme0n1p3
  5. etc...

This patch aggregates only calculates the partitions and skips the root device, thus preventing duplicated statistics.