Fix float64 casting

pull/503/head
Chevy 7 years ago committed by GitHub
parent b99342a9ce
commit 699deed6c6
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