mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed DB record not being saved every 2 minutes.
This commit is contained in:
@@ -512,7 +512,7 @@ namespace RuriLib.Runner
|
||||
|
||||
// Write progress to DB every 2 minutes
|
||||
// Useful if we cannot save it upon work completion (e.g. for a crash or power outage)
|
||||
if (Timer.IsRunning && Timer.Elapsed.TotalSeconds != 0 && Timer.Elapsed.TotalSeconds % 120 == 0)
|
||||
if (Timer.IsRunning && (int)Timer.Elapsed.TotalSeconds != 0 && (int)Timer.Elapsed.TotalSeconds % 120 == 0)
|
||||
{
|
||||
RaiseSaveProgress();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user