Permalink
Browse files

Merge pull request #37 from greenhouse-org/windows-disk-kb

windows should return disk stats in KB not bytes
  • Loading branch information...
2 parents d9ee2f6 + e902720 commit f4030c18ce1a78252deadef2f5e460b35cce7ae5 @tylerschultz tylerschultz committed on GitHub Aug 15, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 sigar_windows.go
View
@@ -181,7 +181,7 @@ func (fs *FileSystemUsage) Get(path string) error {
return fmt.Errorf("FileSystemUsage (%s): %s", path, err)
}
- m := uint64(SectorsPerCluster * BytesPerSector)
+ m := uint64(SectorsPerCluster * BytesPerSector / 1024)
fs.Total = uint64(TotalNumberOfClusters) * m
fs.Free = uint64(NumberOfFreeClusters) * m
fs.Avail = fs.Free

0 comments on commit f4030c1

Please sign in to comment.