summaryrefslogtreecommitdiffabout
path: root/src/grid.c
Side-by-side diff
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)
{
struct monitor *mon = cdata;
struct ygrid_data *gr = xmalloc (sizeof (*gr));
- gr->step = mon->ystep;
+ if (mon->ystep_absolute)
+ gr->step = mon->ystep;
+ else
+ gr->step = mon->ystep * mon->max_rate;
return gr;
}

Return to:

Send suggestions and report system problems to the System administrator.