diff options
author | eplanet <emeric.planet@gmail.com> | 2017-03-26 12:54:07 +0200 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2017-03-26 06:54:07 -0400 |
commit | 94651257cea4ff419f9cf2143d93193d5a5ccb96 (patch) | |
tree | ca563d7570df6c8e84e93a04ecf85037ab77eae8 /include/i3status.h | |
parent | 3ae0decbb33015fb111cdf7ea3d117bd6988cc05 (diff) |
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.
Diffstat (limited to 'include/i3status.h')
-rw-r--r-- | include/i3status.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/i3status.h b/include/i3status.h index a0e1e31..5042832 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -220,7 +220,7 @@ void print_wireless_info(yajl_gen json_gen, char *buffer, const char *interface, void print_run_watch(yajl_gen json_gen, char *buffer, const char *title, const char *pidfile, const char *format, const char *format_down); void print_path_exists(yajl_gen json_gen, char *buffer, const char *title, const char *path, const char *format, const char *format_down); void print_cpu_temperature_info(yajl_gen json_gen, char *buffer, int zone, const char *path, const char *format, const char *format_above_threshold, int); -void print_cpu_usage(yajl_gen json_gen, char *buffer, const char *format, const char *format_above_threshold, const char *format_above_degraded_threshold, const float max_threshold, const float degraded_threshold); +void print_cpu_usage(yajl_gen json_gen, char *buffer, const char *format, const char *format_above_threshold, const char *format_above_degraded_threshold, const char *path, const float max_threshold, const float degraded_threshold); void print_eth_info(yajl_gen json_gen, char *buffer, const char *interface, const char *format_up, const char *format_down); void print_load(yajl_gen json_gen, char *buffer, const char *format, const char *format_above_threshold, const float max_threshold); void print_volume(yajl_gen json_gen, char *buffer, const char *fmt, const char *fmt_muted, const char *device, const char *mixer, int mixer_idx); |