Rust upkeep, and adding grand total minutes calculation to timetracker

This commit is contained in:
Trey Blancher 2023-11-30 17:08:37 -05:00
parent 3a7a4c4007
commit 27d88463d2
4 changed files with 5 additions and 3 deletions

View File

@ -324,7 +324,7 @@ dependencies = [
[[package]]
name = "timetracker"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"chrono",
"itertools",

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = [
"timetracker",

View File

@ -1,6 +1,6 @@
[package]
name = "timetracker"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -31,5 +31,6 @@ fn main() {
println!();
println!("{}", format!("Grand total: {:.2}", gtoth));
let gtotm: f64 = nearest((gtoth * 60.00) as f64);
println!("{}", format!("Grand total: {:.2}hrs ({:.0} minutes)", gtoth, gtotm));
}