aboutsummaryrefslogtreecommitdiff
path: root/src/piesctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/piesctl.c')
-rw-r--r--src/piesctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/piesctl.c b/src/piesctl.c
index 5f26aec..e2e0483 100644
--- a/src/piesctl.c
+++ b/src/piesctl.c
@@ -1163,10 +1163,8 @@ print_comp (FILE *fp, struct json_value *v, size_t n)
fbuf[fidx++] = kwtoc (p->v.s, mode_trans);
else
fbuf[fidx++] = '-';
- p = getval (v, "disabled", json_bool, 0);
+ p = getval (v, "active", json_bool, 0);
if (p && p->v.b)
- fbuf[fidx++] = '-';
- else
{
p = getval (v, "status", json_string, 0);
if (p)
@@ -1174,6 +1172,8 @@ print_comp (FILE *fp, struct json_value *v, size_t n)
else
fbuf[fidx++] = '-';
}
+ else
+ fbuf[fidx++] = '-';
}
else if (strcmp (type, "redirector") == 0)
{

Return to:

Send suggestions and report system problems to the System administrator.