From ddbb43272597ab9d0d12ad37528c8450f903d525 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 20 May 2019 22:38:46 -0400 Subject: [PATCH] Print time more logically --- src/printer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/printer.rs b/src/printer.rs index 328207a..0d928b0 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -78,8 +78,8 @@ impl Printer { for i in 0..AddressState::get_count() { let scan_secs = store.get_u64(U64Setting::RescanInterval(AddressState::from_num(i).unwrap())); out.write_all(format!( - "{:22} ({:2}): {:5} (ie {} min, {} hrs)\n", AddressState::from_num(i).unwrap().to_str(), i, - scan_secs, scan_secs / 60, scan_secs / 60 / 60, + "{:22} ({:2}): {:5} (ie {} hrs, {} min)\n", AddressState::from_num(i).unwrap().to_str(), i, + scan_secs, scan_secs / 60 / 60, (scan_secs / 60) % 60, ).as_bytes()).expect("stdout broken?"); } -- 2.39.5