From 8c4be43948dbe9a3bafd9d2fa8f350cb3359828e Mon Sep 17 00:00:00 2001 From: Martin Ebourne Date: Tue, 20 Dec 2005 08:20:33 +0000 Subject: Rationalise type usage for time values. Now: Box time is always box_time_t seconds is time_t microseconds is uint64_t --- bin/bbstored/BBStoreDHousekeeping.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/bbstored/BBStoreDHousekeeping.cpp') diff --git a/bin/bbstored/BBStoreDHousekeeping.cpp b/bin/bbstored/BBStoreDHousekeeping.cpp index 2eb19089..d3656630 100644 --- a/bin/bbstored/BBStoreDHousekeeping.cpp +++ b/bin/bbstored/BBStoreDHousekeeping.cpp @@ -33,7 +33,7 @@ void BackupStoreDaemon::HousekeepingProcess() { // Get the time between housekeeping runs const Configuration &rconfig(GetConfiguration()); - int64_t housekeepingInterval = SecondsToBoxTime((uint32_t)rconfig.GetKeyValueInt("TimeBetweenHousekeeping")); + int64_t housekeepingInterval = SecondsToBoxTime(rconfig.GetKeyValueInt("TimeBetweenHousekeeping")); int64_t lastHousekeepingRun = 0; @@ -108,7 +108,7 @@ void BackupStoreDaemon::HousekeepingProcess() // Calculate how long should wait before doing the next housekeeping run timeNow = GetCurrentBoxTime(); - int64_t secondsToGo = BoxTimeToSeconds((lastHousekeepingRun + housekeepingInterval) - timeNow); + time_t secondsToGo = BoxTimeToSeconds((lastHousekeepingRun + housekeepingInterval) - timeNow); if(secondsToGo < 1) secondsToGo = 1; if(secondsToGo > 60) secondsToGo = 60; int32_t millisecondsToGo = ((int)secondsToGo) * 1000; -- cgit v1.2.3