aboutsummaryrefslogtreecommitdiff
path: root/src/grid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/grid.c')
-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
@@ -92,13 +92,16 @@ struct ygrid_data
static void *
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;
}
static double
ygrid_next (grid_t grid, char **str, int *mark)
{

Return to:

Send suggestions and report system problems to the System administrator.