From 3eac0cf855f2722c43c960d238ef0871a7a97e3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Wed, 9 Jun 2010 07:24:53 +0000 Subject: [PATCH] Round the Y scale on the elapsed time graph --- grepday.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grepday.c b/grepday.c index 5196b43..1f09434 100644 --- a/grepday.c +++ b/grepday.c @@ -400,7 +400,7 @@ static void greport_draw_yaxis(struct PlotStruct *pdata,struct GraphDataStruct * int t; yval=(double)(y0-y)/gdata->YScale+(double)pdata->ymin; - t=(int)(yval/60000.); + t=(int)(yval/60000.+0.5); snprintf(YLabel,sizeof(YLabel),"%02d:%02d",t/60,t%60); break; } -- 2.47.2