Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Paddyk45 committed Feb 7, 2025
1 parent 2879bde commit 1798302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async fn render_monitor_info(mon: Monitor, mon_id: u64) -> Markup {
("7d", 60 * 60 * 24 * 7),
("14d", 60 * 60 * 24 * 14),
("30d", 60 * 60 * 24 * 30)
].iter().filter(|(_, t)| *t < time_util::current_unix_time() - first_record_time) {
].iter().filter(|(_, t)| *t < time_util::current_unix_time() - first_record_time) {
tr {
th scope="row" { "Last " (timespan) }
@let records = records_last_30d.iter().filter(|r| r.time_checked > time - t).collect::<Vec<&&MonitorRecord>>();
Expand Down

0 comments on commit 1798302

Please sign in to comment.