Skip to content

Commit

Permalink
[RecordTimer] Skip ONLY freespace check
Browse files Browse the repository at this point in the history
  • Loading branch information
Schimmelreiter committed Oct 19, 2016
1 parent 21797bf commit 0ae6c30
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions RecordTimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ def log(self, code, msg):
print "[TIMER]", msg

def freespace(self):
# ToDo: Develop a check that really works
self.log(0, "Skipped free space check, assuming enough free space")
return True
self.MountPath = None
if not self.dirname:
dirname = findSafeRecordPath(defaultMoviePath())
Expand All @@ -222,6 +219,10 @@ def freespace(self):
self.log(0, ("Mount '%s' is not writeable." % dirname))
return False

# ToDo: Develop a check that really works
self.log(0, "Skipped free space check, assuming enough free space")
return True

s = os.statvfs(dirname)
if (s.f_bavail * s.f_bsize) / 1000000 < 1024:
self.log(0, _("Not enough free space to record"))
Expand Down

0 comments on commit 0ae6c30

Please sign in to comment.