Reverting commit because allowing 0 doesn't actually set the usage to
0 size.  It ends up disabling the check all together which was the
opposite intention of the commit.

This reverts commit 3b658f8e1a.
This commit is contained in:
Christopher L. Shannon (cshannon) 2015-11-25 17:59:41 +00:00
parent 8f30866fdf
commit 29d943429c
2 changed files with 3 additions and 2 deletions

View File

@ -96,7 +96,8 @@ public class StoreUsage extends PercentLimitUsage<StoreUsage> {
protected void updateLimitBasedOnPercent() {
usageLock.writeLock().lock();
try {
if (percentLimit >= 0 && store != null) {
if (percentLimit > 0 && store != null) {
File dir = StoreUtil.findParentDirectory(store.getDirectory());
if (dir != null) {

View File

@ -76,7 +76,7 @@ public class TempUsage extends PercentLimitUsage<TempUsage> {
protected void updateLimitBasedOnPercent() {
usageLock.writeLock().lock();
try {
if (percentLimit >= 0 && store != null) {
if (percentLimit > 0 && store != null) {
File dir = StoreUtil.findParentDirectory(store.getDirectory());
if (dir != null) {