summaryrefslogtreecommitdiffabout
path: root/src/grid.c
Unidiff
Diffstat (limited to 'src/grid.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/grid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/grid.c b/src/grid.c
index 08e1c08..4ecb576 100644
--- a/src/grid.c
+++ b/src/grid.c
@@ -95,7 +95,10 @@ ygrid_create (grid_t grid, void *cdata)
95{ 95{
96 struct monitor *mon = cdata; 96 struct monitor *mon = cdata;
97 struct ygrid_data *gr = xmalloc (sizeof (*gr)); 97 struct ygrid_data *gr = xmalloc (sizeof (*gr));
98 gr->step = mon->ystep; 98 if (mon->ystep_absolute)
99 gr->step = mon->ystep;
100 else
101 gr->step = mon->ystep * mon->max_rate;
99 return gr; 102 return gr;
100} 103}
101 104

Return to:

Send suggestions and report system problems to the System administrator.