Add rounding direction

This commit is contained in:
2022-10-04 12:37:11 -05:00
parent b0f5e928d9
commit a8c1812bbf
5 changed files with 41 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ func opListTimers(cmd *cobra.Command, args []string) error {
dayStr = v.StartDate.Format("2006/01/02")
if dayStr != oldDayStr {
// TODO:
wrkDur := dayTotals[dayStr].Round(util.GetRoundToDuration())
wrkDur := util.Round(dayTotals[dayStr])
fmtStr := dayStr + " ( %.2f )\n"
fmt.Printf(fmtStr, util.DurationToDecimal(wrkDur))
}