Commits

Nathan Durnan committed 8d8bbd0

Fix mistake in elapsed minute, second math.

Comments (0)

Files changed (2)

 HgPreBackup.ico,1325031982.39
-HgPreBackup_x86.exe,1326143563.0
-HgPreBackup_x64.exe,1326143569.48
+HgPreBackup_x86.exe,1326144552.0
+HgPreBackup_x64.exe,1326144559.09
 .hgsub,1325791137.19
 HgPreBackupSettings.ini,1325896705.95
 .hgsubstate,1325791876.03
 README.rst,1325791389.33
-_HgPreBackup.au3,1326143572.69
+_HgPreBackup.au3,1326144607.7
 HgPreBackup.svg,1325032006.66
 .hgignore,1325796114.66
-.hgtimestamp,1326143599.42
+.hgtimestamp,1326144617.92
 	EndIf ;check for Mercurial error
 	Local $fTimerElapsed = _Timer_Diff($Gf_TimeStart)/1000
 	If ($fTimerElapsed > 90) Then
-		Local $iMinutes = Mod($fTimerElapsed, 60)
-		Local $fSeconds = $fTimerElapsed - ($iMinutes * 60)
+		Local $fSeconds = Mod($fTimerElapsed, 60)
+		Local $iMinutes = Floor(($fTimerElapsed - $fSeconds) / 60)
 		$myResult = $myResult And FileWriteLine($IN_hLogFile, "| Elapsed Time.......: " & _
 				$iMinutes & " minutes, " & StringFormat('%.3f',$fSeconds) & " seconds")
 	Else ;time is small enough to express in just seconds.