Skip to content

Commit

Permalink
Bridge: ignore partitions on nvme when sampling IO
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmatus authored and martinpitt committed Sep 27, 2022
1 parent a56d14d commit 163e687
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bridge/cockpitdisksamples.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ cockpit_disk_samples (CockpitSamples *samples)
&& g_ascii_isdigit (dev_name[strlen (dev_name) - 1]))
continue;

// ignore nvme partitions
if (g_str_has_prefix (dev_name, "nvme") && g_strrstr (dev_name, "p"))
continue;

bytes_read += num_sectors_read * 512;
bytes_written += num_sectors_written * 512;
num_ops += num_reads_merged + num_writes_merged;
Expand Down

0 comments on commit 163e687

Please sign in to comment.