Print time more logically
authorMatt Corallo <git@bluematt.me>
Tue, 21 May 2019 02:38:46 +0000 (22:38 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 21 May 2019 02:38:46 +0000 (22:38 -0400)
src/printer.rs

index 328207a924482536573895c8b5e886828bdd31a2..0d928b0328b1fa21f46621d8c216ccd3a9d5475d 100644 (file)
@@ -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?");
                                }