progress bars

This commit is contained in:
ntr
2019-05-01 13:48:27 +10:00
parent 7319b4b2ba
commit 9e1795ca26
6 changed files with 46 additions and 53 deletions
+1 -1
View File
@@ -564,7 +564,7 @@ impl Game {
}
fn phase_timed_out(&self) -> bool {
!Utc::now().signed_duration_since(self.phase_end).is_zero()
Utc::now().signed_duration_since(self.phase_end).num_milliseconds() > 0
}
pub fn upkeep(mut self) -> Game {
+1 -1
View File
@@ -83,7 +83,7 @@ impl Instance {
}
fn phase_timed_out(&self) -> bool {
!Utc::now().signed_duration_since(self.phase_end).is_zero()
Utc::now().signed_duration_since(self.phase_end).num_milliseconds() > 0
}
fn timed_out_players(&self) -> Vec<Uuid> {