From 3fafa4cd969abee67c8e862e055ba42a0a0024c7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Mon, 8 Sep 2014 00:27:44 +0200 Subject: [PATCH] same vertical scaling for all "percent" sensors --- src/graph.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/graph.c b/src/graph.c index ab507c0..dd367f6 100644 --- a/src/graph.c +++ b/src/graph.c @@ -24,9 +24,9 @@ #include #include -#include "cfg.h" +#include #include -#include "psensor.h" +#include /* horizontal padding */ #define GRAPH_H_PADDING 4 @@ -364,10 +364,10 @@ graph_update(struct psensor **sensors, if (is_fan_type(s->type)) { min = min_rpm; max = max_rpm; - } else if (s->type & SENSOR_TYPE_CPU_USAGE) { + } else if (s->type & SENSOR_TYPE_PERCENT) { min = 0; max = get_max_value(enabled_sensors, - SENSOR_TYPE_CPU_USAGE); + SENSOR_TYPE_PERCENT); } else { min = mint; max = maxt; -- 2.7.4