for(const auto& a : localRules) {
Json::object rule{
{"id", num++},
- {"matches", (int)a.first->d_matches},
+ {"matches", (double)a.first->d_matches},
{"rule", a.first->toString()},
{"action", a.second->toString()},
{"action-stats", a.second->getStats()}
for(const auto& a : localResponseRules) {
Json::object rule{
{"id", num++},
- {"matches", (int)a.first->d_matches},
+ {"matches", (double)a.first->d_matches},
{"rule", a.first->toString()},
{"action", a.second->toString()},
};