Only update dz expire time if reducing

Add optional UpdateExpireTime parameter

This is currently only used when an expedition becomes empty to make
dynamic zone instances shutdown earlier. For that it should only update
if new time is less than remaining time
This commit is contained in:
hg
2020-05-19 23:03:36 -04:00
parent e79d03261a
commit e822fdb9cf
2 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ public:
void SetCompass(const DynamicZoneLocation& location, bool update_db = false);
void SetSafeReturn(const DynamicZoneLocation& location, bool update_db = false);
void SetZoneInLocation(const DynamicZoneLocation& location, bool update_db = false);
void UpdateExpireTime(uint32_t seconds);
void UpdateExpireTime(uint32_t seconds, bool reduce_only = true);
void LoadFromDatabase(uint32_t instance_id);
uint32_t SaveToDatabase();