mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-08 09:07:44 +00:00
ipn/ipnlocal: fix approxSize operator precedence
Whoops. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
820952daba
commit
529ef98b2a
@ -550,5 +550,5 @@ func approxSize(n int64) string {
|
|||||||
if n <= 1<<20 {
|
if n <= 1<<20 {
|
||||||
return "<=1MB"
|
return "<=1MB"
|
||||||
}
|
}
|
||||||
return fmt.Sprintf("~%dMB", n/1<<20)
|
return fmt.Sprintf("~%dMB", n>>20)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user