Skip to content

Commit c2e6e19

Browse files
committed
Fix status == logic
1 parent 109b011 commit c2e6e19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/status/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ func compareStats(stat, comparisonStat, goal string) (state, string, error) {
5555
}
5656

5757
if goal == "decrease" {
58-
if statNum <= prevStatNum {
58+
if statNum < prevStatNum {
5959
return stateSuccess, fmt.Sprintf("%s is less than %s", stat, comparisonStat), nil
6060
} else if statNum == prevStatNum {
6161
return stateSuccess, fmt.Sprintf("%s is same as %s", stat, comparisonStat), nil
6262
} else {
6363
return stateFailure, fmt.Sprintf("%s is more than %s", stat, comparisonStat), nil
6464
}
6565
} else if goal == "increase" {
66-
if statNum >= prevStatNum {
66+
if statNum > prevStatNum {
6767
return stateSuccess, fmt.Sprintf("%s is more than %s", stat, comparisonStat), nil
6868
} else if statNum == prevStatNum {
6969
return stateSuccess, fmt.Sprintf("%s is same as %s", stat, comparisonStat), nil

0 commit comments

Comments
 (0)