Skip to content

Commit 4ef5f24

Browse files
committed
fix disk_windows
1 parent 7108c6e commit 4ef5f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/clistat/disk_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (s *Statter) Disk(path string) (*Result, error) {
2929

3030
var r Result
3131
r.Total = ptr.To(float64(totalBytes) / 1024 / 1024 / 1024)
32-
r.Used = ptr.To(float64(totalBytes-freeBytes) / 1024 / 1024 / 1024)
32+
r.Used = float64(totalBytes-freeBytes) / 1024 / 1024 / 1024
3333
r.Unit = "GB"
3434
return &r, nil
3535
}

0 commit comments

Comments
 (0)