]> git.sur5r.net Git - i3/i3status/commit
Multiple CPU support for cpu_usage (#209)
authoreplanet <emeric.planet@gmail.com>
Sun, 26 Mar 2017 10:54:07 +0000 (12:54 +0200)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Sun, 26 Mar 2017 10:54:07 +0000 (06:54 -0400)
commit94651257cea4ff419f9cf2143d93193d5a5ccb96
treeca563d7570df6c8e84e93a04ecf85037ab77eae8
parent3ae0decbb33015fb111cdf7ea3d117bd6988cc05
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.
16 files changed:
i3status.c
include/i3status.h
man/i3status.man
src/print_cpu_usage.c
testcases/010-cpu-usage/expected_output.txt [new file with mode: 0644]
testcases/010-cpu-usage/i3status.conf [new file with mode: 0644]
testcases/010-cpu-usage/stat [new file with mode: 0644]
testcases/011-cpu-usage/expected_output.txt [new file with mode: 0644]
testcases/011-cpu-usage/i3status.conf [new file with mode: 0644]
testcases/011-cpu-usage/stat [new file with mode: 0644]
testcases/012-cpu-usage-error/expected_output.txt [new file with mode: 0644]
testcases/012-cpu-usage-error/i3status.conf [new file with mode: 0644]
testcases/012-cpu-usage-error/stat [new file with mode: 0644]
testcases/013-cpu-usage-error/expected_output.txt [new file with mode: 0644]
testcases/013-cpu-usage-error/i3status.conf [new file with mode: 0644]
testcases/013-cpu-usage-error/stat [new file with mode: 0644]