Merge pull request #503 from cshunger/patch-1

Fix float64 casting
pull/508/head
shirou 7 years ago committed by GitHub
commit 1fc354628c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -84,7 +84,7 @@ func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) {
Total: tot,
Used: used,
Free: free,
UsedPercent: float64(used / tot),
UsedPercent: float64(used) / float64(tot),
}
return ret, nil

Loading…
Cancel
Save