Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
mawinter69 committed Oct 17, 2023
1 parent 43569ea commit 6055faa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public DiskSpace markNodeOfflineIfDiskspaceIsTooLow(Computer c) {
long threshold = getThresholdBytes(c);
if (size != null) {
size.setThreshold(threshold);
size.setWarningThreshold(getWarningThresholdBytes(c));
long warningThreshold = getWarningThresholdBytes(c);
size.setWarningThreshold(warningThreshold);
if (size.size < threshold) {
size.setTriggered(this.getClass(), true);
if (getDescriptor().markOffline(c, size)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public boolean isTriggered() {

@Restricted(NoExternalUse.class)
public boolean isWarning() {
return warningThreshold > 0 && size < warningThreshold;
return size > threshold && size < warningThreshold ;
}

/**
Expand Down

0 comments on commit 6055faa

Please sign in to comment.