Skip to content
Snippets Groups Projects
Commit 02a095b2 authored by Libor Peltan's avatar Libor Peltan
Browse files

ctl/status: freeze on first line instead of second

parent 0ccc3e69
Branches
Tags
1 merge request!687Zonestatus
Pipeline #3018 passed with stages
in 15 minutes and 57 seconds
......@@ -245,6 +245,8 @@ static int zone_status(zone_t *zone, ctl_args_t *args)
ret = knot_ctl_send(args->ctl, type, &data);
if (ret != KNOT_EOK) {
return ret;
} else {
type = KNOT_CTL_TYPE_EXTRA;
}
}
// frozen
......@@ -266,13 +268,13 @@ static int zone_status(zone_t *zone, ctl_args_t *args)
data[KNOT_CTL_IDX_DATA] = "freeze queued";
}
}
ret = knot_ctl_send(args->ctl, KNOT_CTL_TYPE_DATA, &data);
ret = knot_ctl_send(args->ctl, type, &data);
if (ret != KNOT_EOK) {
return ret;
}
}
// list modules
bool ctl_type = (param == ZONE_STATUS_EVENT_TIMERS)? true : false;
bool ctl_type = true;;
if (param == ZONE_STATUS_EVENT_TIMERS || param == ZONE_STATUS_NONE) {
time_t ev_time;
for (zone_event_type_t i = 0; i < ZONE_EVENT_COUNT; i++) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment