From: Frédéric Marchal Date: Wed, 9 Jun 2010 07:24:53 +0000 (+0000) Subject: Round the Y scale on the elapsed time graph X-Git-Tag: v2.3-pre5~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eac0cf855f2722c43c960d238ef0871a7a97e3e;p=thirdparty%2Fsarg.git Round the Y scale on the elapsed time graph --- 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; }