MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / score2char

Function score2char

lib/common/utils.c:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183char *
184score2char(int score)
185{
186 if (score >= node_score_infinity) {
187 return strdup(INFINITY_S);
188
189 } else if (score <= -node_score_infinity) {
190 return strdup("-" INFINITY_S);
191 }
192 return crm_itoa(score);
193}
194
195const char *
196cluster_option(GHashTable * options, gboolean(*validate) (const char *),

Callers 8

show_locationFunction · 0.85
show_colocationFunction · 0.85
dump_node_scores_workerFunction · 0.85
get_failcountFunction · 0.85
master_promotion_orderFunction · 0.85
master_colorFunction · 0.85
native_choose_nodeFunction · 0.85
colocation_matchFunction · 0.85

Calls 1

crm_itoaFunction · 0.85

Tested by

no test coverage detected