about summary refs log tree commit diff
path: root/src/ui/task_row.rs
diff options
context:
space:
mode:
authorRicky Kresslein <rk@lakoliu.com>2022-03-16 10:01:57 +0100
committerRicky Kresslein <rk@lakoliu.com>2022-03-16 10:01:57 +0100
commit9e9ddca690ca16d03c44ea9c8a312320bb6eba34 (patch)
treefcc60841d0125997bbb1769ff6e2b401e86bda1a /src/ui/task_row.rs
parente2bbca53121f51c76bdfa54f0d239c8db5ca59be (diff)
downloadFurtherance-9e9ddca690ca16d03c44ea9c8a312320bb6eba34.tar.zst
Bug fix - total time displaying incorrectly
Diffstat (limited to 'src/ui/task_row.rs')
-rwxr-xr-xsrc/ui/task_row.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/task_row.rs b/src/ui/task_row.rs
index cd0c69a..d4bcaec 100755
--- a/src/ui/task_row.rs
+++ b/src/ui/task_row.rs
@@ -114,9 +114,9 @@ impl FurTaskRow {
             }
         }
         // Format total time to readable string
-        let h = total_time / 60 / 60;
-        let m = (total_time / 60) - (h * 60);
-        let s = total_time - (m * 60);
+        let h = total_time / 3600;
+        let m = total_time % 3600 / 60;
+        let s = total_time % 60;
         let mut total_time_str = format!("{:02}:{:02}:{:02}", h, m, s);
 
         if !settings_manager::get_bool("show-seconds") {