diff --git a/src/pages.rs b/src/pages.rs index d1c45760..1d5ad8a6 100644 --- a/src/pages.rs +++ b/src/pages.rs @@ -32,7 +32,7 @@ use crate::{ const CSS: &str = include_str!("radicle-ci.css"); const REFERESH_INTERVAL: &str = "300"; -const UPDATE_INTERVAL: u64 = 60; +const UPDATE_INTERVAL: Duration = Duration::from_secs(60); /// All possible errors returned from the status page module. #[derive(Debug, thiserror::Error)] @@ -503,7 +503,11 @@ impl StatusPage { if once { return Ok(()); } - sleep(Duration::from_secs(UPDATE_INTERVAL)); + info!( + "wait about {} seconds to update HTML report pages again", + UPDATE_INTERVAL.as_secs() + ); + sleep(UPDATE_INTERVAL); }) }