From 94651257cea4ff419f9cf2143d93193d5a5ccb96 Mon Sep 17 00:00:00 2001 From: eplanet Date: Sun, 26 Mar 2017 12:54:07 +0200 Subject: Multiple CPU support for cpu_usage (#209) This change addresses the issue #199 asking for multiple CPU support. It takes an arbitrary CPU number and outputs its usage using the same arithmetics as for CPU aggregation. It currently doesn't support FreeBSD. --- testcases/013-cpu-usage-error/i3status.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 testcases/013-cpu-usage-error/i3status.conf (limited to 'testcases/013-cpu-usage-error/i3status.conf') diff --git a/testcases/013-cpu-usage-error/i3status.conf b/testcases/013-cpu-usage-error/i3status.conf new file mode 100644 index 0000000..a55934e --- /dev/null +++ b/testcases/013-cpu-usage-error/i3status.conf @@ -0,0 +1,12 @@ +general { + output_format = "none" +} + +order += "cpu_usage" + +cpu_usage { + format = "all: %usage CPU_0: %cpu0 CPU_1: %cpu1" + path = "testcases/013-cpu-usage-error/stat" + max_threshold = 90 + degraded_threshold = 75 +} -- cgit v1.2.3