Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
or-shachar committed Nov 19, 2023
1 parent e140a3c commit 39df3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/go-cacher/cacher.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func formatBytes(size float64) string {

switch {
case size < kb:
return fmt.Sprintf("%d B", size)
return fmt.Sprintf("%.2f B", size)
case size < mb:
return fmt.Sprintf("%.2f KB", size/float64(kb))
case size < gb:
Expand Down

0 comments on commit 39df3f7

Please sign in to comment.