summaryrefslogtreecommitdiff
path: root/bin/bbstoreaccounts
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2009-09-17 22:23:39 +0000
committerChris Wilson <chris+github@qwirx.com>2009-09-17 22:23:39 +0000
commit50dd740667c84f08512a48037c5461696894dedc (patch)
tree597ab906d57e19538c1ff5d8400f93a21935f03d /bin/bbstoreaccounts
parent53e795b8e8481c951fa06fa26188309938029151 (diff)
Remove check for soft limit being less than 97% of the hard limit, as
some users want to set them equal to ensure that no files are ever deleted by housekeeping.
Diffstat (limited to 'bin/bbstoreaccounts')
-rw-r--r--bin/bbstoreaccounts/bbstoreaccounts.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/bbstoreaccounts/bbstoreaccounts.cpp b/bin/bbstoreaccounts/bbstoreaccounts.cpp
index e377b661..a9d2b0af 100644
--- a/bin/bbstoreaccounts/bbstoreaccounts.cpp
+++ b/bin/bbstoreaccounts/bbstoreaccounts.cpp
@@ -45,16 +45,17 @@ bool sMachineReadableOutput = false;
void CheckSoftHardLimits(int64_t SoftLimit, int64_t HardLimit)
{
- if(SoftLimit >= HardLimit)
+ if(SoftLimit > HardLimit)
{
BOX_FATAL("Soft limit must be less than the hard limit.");
exit(1);
}
if(SoftLimit > ((HardLimit * MAX_SOFT_LIMIT_SIZE) / 100))
{
- BOX_FATAL("Soft limit must be no more than " <<
- MAX_SOFT_LIMIT_SIZE << "% of the hard limit.");
- exit(1);
+ BOX_WARNING("We recommend setting the soft limit below " <<
+ MAX_SOFT_LIMIT_SIZE << "% of the hard limit, or " <<
+ HumanReadableSize((HardLimit * MAX_SOFT_LIMIT_SIZE)
+ / 100) << " in this case.");
}
}