projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d24089e
)
same vertical scaling for all "percent" sensors
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sun, 7 Sep 2014 22:27:44 +0000
(
00:27
+0200)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sun, 7 Sep 2014 22:27:44 +0000
(
00:27
+0200)
src/graph.c
patch
|
blob
|
history
diff --git
a/src/graph.c
b/src/graph.c
index
ab507c0
..
dd367f6
100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-24,9
+24,9
@@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#include
"cfg.h"
+#include
<cfg.h>
#include <plog.h>
#include <plog.h>
-#include
"psensor.h"
+#include
<psensor.h>
/* horizontal padding */
#define GRAPH_H_PADDING 4
/* 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;
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,
min = 0;
max = get_max_value(enabled_sensors,
- SENSOR_TYPE_
CPU_USAGE
);
+ SENSOR_TYPE_
PERCENT
);
} else {
min = mint;
max = maxt;
} else {
min = mint;
max = maxt;