Skip to content

Commit

Permalink
feat: only return day in string if seconds more than 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanaden committed Jun 21, 2024
1 parent e4f0a63 commit 10f8f1f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rm-main/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ pub fn seconds_to_human_format(seconds: i64) -> String {
let mut rest = seconds;
if seconds > DAY {
let days = rest / DAY;
rest %= DAY;

curr_string = format!("{curr_string}{days}d");
curr_string = format!("{days}d");
return curr_string;
}

if seconds > HOUR {
Expand Down

0 comments on commit 10f8f1f

Please sign in to comment.