From 646720fdd975f30d7d1ef076feeda7b0d9b18c9a Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sat, 4 Jan 2014 14:03:08 +0100 Subject: Dynamic frequency ajustment. --- monitor/disp.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'monitor/disp.c') diff --git a/monitor/disp.c b/monitor/disp.c index 96d994d..afefe41 100644 --- a/monitor/disp.c +++ b/monitor/disp.c @@ -74,11 +74,12 @@ void disp_display(t_mon *mon) { werase(wpstatus); - wprintw(wpstatus, "Step:\t\t%d\t%s", - mon->step, - (mon->status == MS_AUTO ? "A" : (mon->status == MS_RUN ? "M" : ""))); - if (mon->status == MS_FREQ) wprintw(wpstatus, "%dHz", mon->freq); - if (mon->status == MS_AUTO) wprintw(wpstatus, " %dHz", mon->max_freq); + wprintw(wpstatus, "Step:\t\t%d\t", mon->step); + if (mon->status == MS_RUN) wprintw(wpstatus, "M"); + if (mon->status == MS_FREQ) + wprintw(wpstatus, "%dHz\t%dHz", mon->actual_freq, mon->target_freq); + if (mon->status == MS_AUTO) + wprintw(wpstatus, "%dHz\t", mon->actual_freq); wprintw(wpstatus, "\t%s\n", (mon->ticker_mode == TM_SECOND ? "TS" : (mon->ticker_mode == TM_FAST ? "TF" : "TZ"))); -- cgit v1.2.3