[Kst] branches/work/kst/portto4/kst/src/libkstapp

Peter Kümmel syntheticpp at gmx.net
Thu Oct 25 18:16:11 UTC 2012


SVN commit 1322448 by kuemmel:

round milli seconds not seconds

 M  +1 -1      plotaxis.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/plotaxis.cpp #1322447:1322448
@@ -185,7 +185,7 @@
   int minute = int((dDayFraction*24.0 - double(hour))*60.0);
   double second = ((dDayFraction*24.0 - double(hour))*60.0 - double(minute))*60.0;
   double fullseconds;
-  double millisec = modf(second + 0.5, &fullseconds) * 1000;
+  double millisec = modf(second + 0.0005, &fullseconds) * 1000;
 
   if (accuracy >= 0) {
     second *= pow(10.0, accuracy);


More information about the Kst mailing list