[Box Backup-commit] COMMIT r3340 - box/trunk/bin/bbackupd

subversion at boxbackup.org subversion at boxbackup.org
Fri Apr 18 10:28:10 BST 2014


Author: chris
Date: 2014-04-18 10:28:09 +0100 (Fri, 18 Apr 2014)
New Revision: 3340

Modified:
   box/trunk/bin/bbackupd/BackupDaemon.cpp
Log:
Eliminate duplicate call to GetCurrentBoxTime().

Modified: box/trunk/bin/bbackupd/BackupDaemon.cpp
===================================================================
--- box/trunk/bin/bbackupd/BackupDaemon.cpp	2014-04-18 09:28:04 UTC (rev 3339)
+++ box/trunk/bin/bbackupd/BackupDaemon.cpp	2014-04-18 09:28:09 UTC (rev 3340)
@@ -561,8 +561,6 @@
 		bool doSync = false;
 		bool mDoSyncForcedByCommand = false;
 
-		box_time_t currentTime = GetCurrentBoxTime();
-
 		// Check whether we should be stopping, and if so,
 		// don't hang around waiting on the command socket.
 		if(StopRun())
@@ -573,7 +571,7 @@
 		}
 
 		// Is a delay necessary?
-		currentTime = GetCurrentBoxTime();
+		box_time_t currentTime = GetCurrentBoxTime();
 		box_time_t requiredDelay = (mNextSyncTime < currentTime)
 				? (0) : (mNextSyncTime - currentTime);
 




More information about the Boxbackup-commit mailing list