diff options
author | Martin Ebourne <martin@ebourne.me.uk> | 2005-12-20 08:20:33 +0000 |
---|---|---|
committer | Martin Ebourne <martin@ebourne.me.uk> | 2005-12-20 08:20:33 +0000 |
commit | 8c4be43948dbe9a3bafd9d2fa8f350cb3359828e (patch) | |
tree | fc06a296bb9622bd5da7adad52e94d900aa48809 /bin/bbstored/BBStoreDHousekeeping.cpp | |
parent | ee95f5d73a7f2ca50d38dea6e862a6c683dfc8cc (diff) |
Rationalise type usage for time values. Now:
Box time is always box_time_t
seconds is time_t
microseconds is uint64_t
Diffstat (limited to 'bin/bbstored/BBStoreDHousekeeping.cpp')
-rw-r--r-- | bin/bbstored/BBStoreDHousekeeping.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |