Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/client/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/client/cache.py')
-rw-r--r--sugar_network/client/cache.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sugar_network/client/cache.py b/sugar_network/client/cache.py
index 685bdf4..0858969 100644
--- a/sugar_network/client/cache.py
+++ b/sugar_network/client/cache.py
@@ -14,6 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
+import sys
import json
import time
import logging
@@ -125,7 +126,7 @@ class Cache(object):
# TODO Sonds like a tmpfs or so
return 0
- limit = 0
+ limit = sys.maxint
free = stat.f_bfree * stat.f_frsize
if client.cache_limit_percent.value:
total = stat.f_blocks * stat.f_frsize