diff options
author | Chris Wilson <chris+github@qwirx.com> | 2012-11-27 22:47:18 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2012-11-27 22:47:18 +0000 |
commit | 1294ef1b2c9272b54c81a9c8a246dda171b942f4 (patch) | |
tree | a856ccc011cae6564d4b92425929b9e86f277f60 /bin | |
parent | 0d4c4ace97095fd37ea11ac289d02012f6e5f820 (diff) |
Log reason for housekeeping, or not (timer status).
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbstored/BBStoreDHousekeeping.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/bbstored/BBStoreDHousekeeping.cpp b/bin/bbstored/BBStoreDHousekeeping.cpp index 96fa7c80..86d6409c 100644 --- a/bin/bbstored/BBStoreDHousekeeping.cpp +++ b/bin/bbstored/BBStoreDHousekeeping.cpp @@ -79,8 +79,19 @@ void BackupStoreDaemon::RunHousekeepingIfNeeded() // Do housekeeping if the time interval has elapsed since the last check if((timeNow - mLastHousekeepingRun) < housekeepingInterval) { + BOX_TRACE("No need for housekeeping, " << + BoxTimeToSeconds(timeNow - mLastHousekeepingRun) << + " seconds since last run is less than " << + BoxTimeToSeconds(housekeepingInterval)); return; } + else + { + BOX_TRACE("Running housekeeping now, because " << + BoxTimeToSeconds(timeNow - mLastHousekeepingRun) << + " seconds since last run is more than " << + BoxTimeToSeconds(housekeepingInterval)); + } // Store the time mLastHousekeepingRun = timeNow; |