Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

If we can't figure out the free space, use what we're told.

  • Loading branch information...
commit 6bd27fbc4962195ad857cfce74baf49c8ba9af8f 1 parent 2d9b795
@dustin dustin authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 heartbeat.go
View
7 heartbeat.go
@@ -17,8 +17,11 @@ var spaceUsed int64
func availableSpace() uint64 {
freeSpace, err := filesystemFree()
- if err != nil && err != noFSFree {
- log.Printf("Error getting filesystem info: %v", err)
+ if err != nil {
+ if err != noFSFree {
+ log.Printf("Error getting filesystem info: %v", err)
+ }
+ freeSpace = maxStorage
}
if maxStorage > 0 {
Please sign in to comment.
Something went wrong with that request. Please try again.