Skip to content

Commit f4e3866

Browse files
committed
Configurable limit threshold
1 parent 1bdf370 commit f4e3866

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validatedfile/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def exceeds(self, size = 0):
5454
else:
5555
return False
5656

57-
def near_limit(self):
58-
return (float(self.current_usage) / float(self.max_usage)) > 0.8
57+
def near_limit(self, limit_threshold = 0.8):
58+
return (float(self.current_usage) / float(self.max_usage)) > limit_threshold
5959

6060

6161
class QuotaValidator(object):

0 commit comments

Comments
 (0)