aboutsummaryrefslogtreecommitdiff
path: root/desktop/wmmon/nvme.diff
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/wmmon/nvme.diff')
-rw-r--r--desktop/wmmon/nvme.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop/wmmon/nvme.diff b/desktop/wmmon/nvme.diff
new file mode 100644
index 0000000000000..69f156a0755fe
--- /dev/null
+++ b/desktop/wmmon/nvme.diff
@@ -0,0 +1,12 @@
+diff -Naur wmmon-1.4/wmmon.c wmmon-1.4.patched/wmmon.c
+--- wmmon-1.4/wmmon.c 2018-04-10 18:22:59.000000000 -0400
++++ wmmon-1.4.patched/wmmon.c 2023-02-14 00:38:41.868867398 -0500
+@@ -800,7 +800,7 @@
+ * limited buffer. Or just divide by 2 (inefficient). Shouldn't
+ * matter for graphing (we care about proportions, not numbers). */
+ while ((getline(&line, &line_size, fp_diskstats)) > 0) {
+- if (strstr(line, "sd") || strstr(line, "sr")) {
++ if (strstr(line, "sd") || strstr(line, "sr") || strstr(line, "nvme")) {
+ p = strtok(line, tokens);
+ /* skip 3 tokens, then use fields from
+ `* linux/Documentation/iostats.txt */