summaryrefslogtreecommitdiff
path: root/monitor/mon.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/mon.c')
-rw-r--r--monitor/mon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/monitor/mon.c b/monitor/mon.c
index b876559..41182a8 100644
--- a/monitor/mon.c
+++ b/monitor/mon.c
@@ -152,6 +152,8 @@ void mon_step(t_mon *mon) {
ticker = 1;
}
if (mon->ticker_input != -1) {
+ if (mon->inputs[mon->ticker_input].size == 1)
+ ticker = (ticker != 0 ? 1 : 0);
sprintf(mon->inputs[mon->ticker_input].value, "/%d", ticker);
}