From 85a89e707be75e0e2ea33077a40f567f3edf263e Mon Sep 17 00:00:00 2001 From: Ben Aldrich Date: Wed, 2 Sep 2015 11:27:47 -0600 Subject: [PATCH] fix compile fail --- disk/disk_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disk/disk_windows.go b/disk/disk_windows.go index 8656e44..928043d 100644 --- a/disk/disk_windows.go +++ b/disk/disk_windows.go @@ -27,7 +27,7 @@ var ( const WaitMSec = 500 func DiskUsage(path string) (*DiskUsageStat, error) { - ret := DiskUsageStat{} + ret := &DiskUsageStat{} lpFreeBytesAvailable := int64(0) lpTotalNumberOfBytes := int64(0) @@ -40,7 +40,7 @@ func DiskUsage(path string) (*DiskUsageStat, error) { if diskret == 0 { return nil, err } - ret := &DiskUsageStat{ + ret = &DiskUsageStat{ Path: path, Total: uint64(lpTotalNumberOfBytes), Free: uint64(lpTotalNumberOfFreeBytes),