Fix daily runtime calculation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-12-29 14:30:32 +01:00
parent e74f7d6f6d
commit 72afa3df62
2 changed files with 15 additions and 5 deletions

View File

@ -1,7 +1,7 @@
use chrono::prelude::*;
use std::time::{SystemTime, UNIX_EPOCH};
/// Get the current time since epoch
/// Get the current time since epoch, in seconds
pub fn time_secs() -> u64 {
SystemTime::now()
.duration_since(UNIX_EPOCH)