cfg->dns_retransmits = 5;
/* 16 sockets per DNS server */
cfg->dns_io_per_server = 16;
+ cfg->unknown_weight = NAN;
/* Add all internal actions to keep compatibility */
for (int i = METRIC_ACTION_REJECT; i < METRIC_ACTION_MAX; i ++) {
(SYMBOL_TYPE_NORMAL|SYMBOL_TYPE_VIRTUAL|SYMBOL_TYPE_COMPOSITE|SYMBOL_TYPE_CLASSIFIER))
&& g_hash_table_lookup (cfg->symbols, item->symbol) == NULL) {
- if (cfg->unknown_weight != 0) {
+ if (!isnan(cfg->unknown_weight)) {
skipped = FALSE;
item->st->weight = cfg->unknown_weight;
s->weight_ptr = &item->st->weight;
g_hash_table_insert (cfg->symbols, item->symbol, s);
- msg_info_cache ("adding unknown symbol %s", item->symbol);
+ msg_info_cache ("adding unknown symbol %s with weight: %.2f",
+ item->symbol, cfg->unknown_weight);
ghost = FALSE;
}
else {