hive-sh4re: delete now_unix(), the migration's last call sites are gone
This commit is contained in:
parent
9293c5d580
commit
9f5ce4d941
3 changed files with 10 additions and 13 deletions
|
|
@ -416,7 +416,8 @@ fn maybe_auto_reset(bus: &Bus) {
|
|||
if last_ended == 0 {
|
||||
return; // no completed turn yet
|
||||
}
|
||||
// Compute idle seconds using the same clock as now_unix (unix epoch, i64).
|
||||
// Compute idle seconds using the same clock semantics as elsewhere
|
||||
// in this crate (unix epoch, i64 seconds via `Utc::now().timestamp()`).
|
||||
let now = std::time::SystemTime::now()
|
||||
.duration_since(std::time::UNIX_EPOCH)
|
||||
.map_or(0, |d| d.as_secs());
|
||||
|
|
|
|||
Loading…
Reference in a new issue