projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b558a75
)
styling
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 27 Mar 2012 10:30:42 +0000
(10:30 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 27 Mar 2012 10:30:42 +0000
(10:30 +0000)
src/graph.c
patch
|
blob
|
history
diff --git
a/src/graph.c
b/src/graph.c
index
a3701bc
..
c3f4d5c
100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-171,18
+171,16
@@
static void draw_sensor_curve(struct psensor *s,
int g_xoff,
int g_yoff)
{
- int first
= 1
;
-
int i
;
+ int first
, i, x, y, t
;
+
double v
;
cairo_set_source_rgb(cr,
s->color->f_red,
s->color->f_green,
s->color->f_blue);
-
- for (i = 0; i < s->values_max_length; i++) {
- int x, y, t;
- double v;
+ first = 1;
+ for (i = 0; i < s->values_max_length; i++) {
t = s->measures[i].time.tv_sec;
v = s->measures[i].value.d_num;