Skip to content

Commit

Permalink
fix(backpressure): fix metric value of back pressure state (#2209)
Browse files Browse the repository at this point in the history
fix: fix metric value of back pressure state

Signed-off-by: Ning Yu <ningyu@automq.com>
  • Loading branch information
Chillax-0v0 authored Dec 3, 2024
1 parent eab1c07 commit 89ccf10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private void regulate(LoadLevel loadLevel, long now) {
private Map<String, Integer> stateMetrics() {
LoadLevel current = currentLoadLevel();
for (LoadLevel level : LoadLevel.values()) {
int value = level.equals(current) ? 1 : -1;
int value = level.equals(current) ? current.ordinal() : -1;
stateMetrics.put(level.name(), value);
}
return stateMetrics;
Expand Down

0 comments on commit 89ccf10

Please sign in to comment.