Skip to content

Commit

Permalink
Sessions: fix number format
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Nov 17, 2022
1 parent 75470e8 commit f8b51da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/db/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ func (t *Sessions) writeRow(ww *csv.Writer, mp *message.Printer, r Session) erro
case float64:
switch format {
case "int":
val = mp.Sprint(number.Decimal(v, number.MaxFractionDigits(0)))
val = mp.Sprint(number.Decimal(v, number.NoSeparator(), number.MaxFractionDigits(0)))
default:
val = mp.Sprint(number.Decimal(v, number.MaxFractionDigits(3)))
val = mp.Sprint(number.Decimal(v, number.NoSeparator(), number.MaxFractionDigits(3)))
}
case time.Time:
if !v.IsZero() {
Expand Down

0 comments on commit f8b51da

Please sign in to comment.