diff --git a/src/subcommand/server/templates/clock.rs b/src/subcommand/server/templates/clock.rs
index 8912c1b256..9114335f76 100644
--- a/src/subcommand/server/templates/clock.rs
+++ b/src/subcommand/server/templates/clock.rs
@@ -2,6 +2,7 @@ use super::*;
#[derive(Display)]
pub(crate) struct ClockSvg {
+ height: Height,
hour: f64,
minute: f64,
second: f64,
@@ -12,6 +13,7 @@ impl ClockSvg {
let min = height.min(Epoch::FIRST_POST_SUBSIDY.starting_height());
Self {
+ height,
hour: (min.n() % Epoch::FIRST_POST_SUBSIDY.starting_height().n()) as f64
/ Epoch::FIRST_POST_SUBSIDY.starting_height().n() as f64
* 360.0,
@@ -81,10 +83,11 @@ mod tests {
}
#[test]
- fn foo_svg() {
+ fn clock_svg() {
assert_regex_match!(
ClockSvg::new(Height(6929999)).to_string(),
- r##"
+ r##"6929999.*
+
.*
"##,
diff --git a/templates/clock.svg b/templates/clock.svg
index 121c7c12b8..9fcfe29029 100644
--- a/templates/clock.svg
+++ b/templates/clock.svg
@@ -1,6 +1,7 @@