'0' is legit load or ping
This commit is contained in:
Logan oos Even 2021-04-06 11:45:40 +05:45 committed by GitHub
parent aa18bd3036
commit 12e81c6be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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