]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Round the Y scale on the elapsed time graph
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 9 Jun 2010 07:24:53 +0000 (07:24 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 9 Jun 2010 07:24:53 +0000 (07:24 +0000)
grepday.c

index 5196b43246277751edf36e71db65aa1b36187f5b..1f094342f15ad2c317f21d15cf731f45713cb9a5 100644 (file)
--- 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;
          }