fix compile fail

This commit is contained in:
Ben Aldrich 2015-09-02 11:27:47 -06:00
parent 47f6760cf3
commit 85a89e707b
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ var (
const WaitMSec = 500 const WaitMSec = 500
func DiskUsage(path string) (*DiskUsageStat, error) { func DiskUsage(path string) (*DiskUsageStat, error) {
ret := DiskUsageStat{} ret := &DiskUsageStat{}
lpFreeBytesAvailable := int64(0) lpFreeBytesAvailable := int64(0)
lpTotalNumberOfBytes := int64(0) lpTotalNumberOfBytes := int64(0)
@ -40,7 +40,7 @@ func DiskUsage(path string) (*DiskUsageStat, error) {
if diskret == 0 { if diskret == 0 {
return nil, err return nil, err
} }
ret := &DiskUsageStat{ ret = &DiskUsageStat{
Path: path, Path: path,
Total: uint64(lpTotalNumberOfBytes), Total: uint64(lpTotalNumberOfBytes),
Free: uint64(lpTotalNumberOfFreeBytes), Free: uint64(lpTotalNumberOfFreeBytes),