diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/updates.cpp | 2 | ||||
-rw-r--r-- | common/updates.h | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/common/updates.cpp b/common/updates.cpp index 4174a96c56..087002a7d3 100644 --- a/common/updates.cpp +++ b/common/updates.cpp @@ -42,7 +42,7 @@ int UpdateManager::normalizeInterval(int interval) { const int *val = updateIntervals; while (*val != -1) { - if (*val > interval) + if (*val >= interval) return *val; val++; } diff --git a/common/updates.h b/common/updates.h index 65eb5ac095..3a3049d4df 100644 --- a/common/updates.h +++ b/common/updates.h @@ -95,6 +95,14 @@ public: virtual int getUpdateCheckInterval() { return kUpdateIntervalNotSupported; } /** + * Gets last update check time + * + * @param t TimeDate struct to fill out + * @return flag indicating success + */ + virtual bool getLastUpdateCheckTimeAndDate(TimeDate &t) { return false; } + + /** * Returns list of supported uptate intervals. * Ending with '-1' which is not acceptable value. * |