mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +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
|
||||
|
||||
ret := Disk_usageStat{
|
||||
Path: path,
|
||||
Total: (uint64(stat.Blocks) * uint64(bsize)) >> 1,
|
||||
Free: (uint64(stat.Bfree) * uint64(bsize)) >> 1,
|
||||
Path: path,
|
||||
Total: (uint64(stat.Blocks) * uint64(bsize)) >> 1,
|
||||
Free: (uint64(stat.Bfree) * uint64(bsize)) >> 1,
|
||||
}
|
||||
|
||||
ret.Used = (ret.Total - ret.Free)
|
||||
|
Loading…
x
Reference in New Issue
Block a user