From 12e81c6be38d04d3cada53466c3455c907b363ad Mon Sep 17 00:00:00 2001 From: Logan oos Even <46396513+Logan007@users.noreply.github.com> Date: Tue, 6 Apr 2021 11:45:40 +0545 Subject: [PATCH] typo '0' is legit load or ping --- src/sn_selection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sn_selection.c b/src/sn_selection.c index 6cf48c7..d17518b 100644 --- a/src/sn_selection.c +++ b/src/sn_selection.c @@ -163,7 +163,7 @@ extern char * sn_selection_criterion_str (selection_criterion_str_t out, peer_in } memset(out, 0, SN_SELECTION_CRITERION_BUF_SIZE); - if(peer->selection_criterion > 0) { + if(peer->selection_criterion >= 0) { #ifndef SN_SELECTION_RTT snprintf(out, SN_SELECTION_CRITERION_BUF_SIZE, "load = %8d", peer->selection_criterion); #else