ipn/ipnlocal: fix approxSize operator precedence

Whoops.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-04-22 08:43:52 -07:00
parent 820952daba
commit 529ef98b2a

View File

@ -550,5 +550,5 @@ func approxSize(n int64) string {
if n <= 1<<20 {
return "<=1MB"
}
return fmt.Sprintf("~%dMB", n/1<<20)
return fmt.Sprintf("~%dMB", n>>20)
}