Code

fix minutes/seconds calc. oops.
authorishmal <ishmal@users.sourceforge.net>
Sat, 2 Dec 2006 14:00:35 +0000 (14:00 +0000)
committerishmal <ishmal@users.sourceforge.net>
Sat, 2 Dec 2006 14:00:35 +0000 (14:00 +0000)
buildtool.cpp

index af1b033e7c73ad224da3d0dfd8863e2e71c34cce..e61caf9c7fc78d660546d44a22683405a896c933 100644 (file)
@@ -8208,7 +8208,7 @@ timeDiffString(struct timeval &x, struct timeval &y)
     int millis  = (int)((microsX - microsY)/1000);
 
     int minutes = seconds/60;
-    seconds += minutes*60;
+    seconds -= minutes*60;
     char buf[80];
     snprintf(buf, 79, "%dm %d.%03ds", minutes, seconds, millis);
     String ret = buf;