Skip to content

Commit

Permalink
Added partial FreeBSD support for fsutil and system packages
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Jan 13, 2016
1 parent ee6542a commit 5b91aa6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#### v1.4.1

* `[fsutil]` Added FreeBSD support
* `[system]` Added FreeBSD support
* `[fsutil]` Added partial FreeBSD support
* `[system]` Added partial FreeBSD support
* `[log]` Some minor fixes in tests

#### v1.4.0
Expand Down
2 changes: 1 addition & 1 deletion system/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func GetFSInfo() (map[string]*FSInfo, error) {
}

fsInfo.Total = stats.Blocks * uint64(stats.Bsize)
fsInfo.Free = stats.Bavail * uint64(stats.Bsize)
fsInfo.Free = uint64(stats.Bavail) * uint64(stats.Bsize)
fsInfo.Used = fsInfo.Total - (stats.Bfree * uint64(stats.Bsize))
fsInfo.IOStats = ios[strings.Replace(fsInfo.Device, "/dev/", "", 1)]

Expand Down
2 changes: 1 addition & 1 deletion system/info_posix.go → system/info_linux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux, freebsd
// +build linux

package system

Expand Down

0 comments on commit 5b91aa6

Please sign in to comment.