Merge pull request #69 from vrecan/fix_build

Fix windows compile issues
This commit is contained in:
shirou 2015-09-03 09:30:59 +09:00
commit af29b38440
1 changed files with 2 additions and 2 deletions

View File

@ -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),