mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-01 13:48:52 +08:00
go fmt
This commit is contained in:
parent
a2b5e67b2f
commit
d99b3db367
@ -14,9 +14,9 @@ func Disk_usage(path string) (Disk_usageStat, error) {
|
|||||||
bsize := stat.Bsize / 512
|
bsize := stat.Bsize / 512
|
||||||
|
|
||||||
ret := Disk_usageStat{
|
ret := Disk_usageStat{
|
||||||
Path: path,
|
Path: path,
|
||||||
Total: (uint64(stat.Blocks) * uint64(bsize)) >> 1,
|
Total: (uint64(stat.Blocks) * uint64(bsize)) >> 1,
|
||||||
Free: (uint64(stat.Bfree) * uint64(bsize)) >> 1,
|
Free: (uint64(stat.Bfree) * uint64(bsize)) >> 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
ret.Used = (ret.Total - ret.Free)
|
ret.Used = (ret.Total - ret.Free)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user