Skip to content

Commit

Permalink
Add padding for minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
sam701 committed Jan 13, 2020
1 parent 25c318f commit 15af438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fn print_credentials() {
}

fn format_duration(d: Duration) -> String {
format!("{}:{}", d.num_hours(), d.num_minutes() % 60)
format!("{}:{:02}", d.num_hours(), d.num_minutes() % 60)
}

fn print_prompt() {
Expand Down

0 comments on commit 15af438

Please sign in to comment.