summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2021-08-03 08:41:23 +0100
committerAlastair Poole <netstar@gmail.com>2021-08-03 08:41:23 +0100
commitb792e494d3c1258bd7d12b4e88504a36e6372c35 (patch)
tree3b3c84bb68c4aaee3b1ab4caf2bcf009201c6270
parent2aab555f1b20213e634d6ba3a0af766d6c342839 (diff)
cores: ...
-rw-r--r--src/bin/monitor/cores.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bin/monitor/cores.c b/src/bin/monitor/cores.c
index 795d295..f1b52df 100644
--- a/src/bin/monitor/cores.c
+++ b/src/bin/monitor/cores.c
@@ -145,7 +145,6 @@ monitor_cores(Enigmatic *enigmatic, Eina_Hash **cache_hash)
145 continue; 145 continue;
146 } 146 }
147 diff_total = core->total - c->total; 147 diff_total = core->total - c->total;
148 if (diff_total == 0) diff_total = 1;
149 diff_idle = core->idle - c->idle; 148 diff_idle = core->idle - c->idle;
150 ratio = diff_total / 100.0; 149 ratio = diff_total / 100.0;
151 used = diff_total - diff_idle; 150 used = diff_total - diff_idle;