Skip to content

Commit

Permalink
Delay display of stochastics until we have actual data
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Nov 17, 2023
1 parent 8d24130 commit fb7b99d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions ttyplot.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,15 @@ void paint_plot(void) {
mvaddstr(height-2, width-strlen(ls), ls);

mvvline(height-2, 5, plotchar|A_NORMAL, 1);
mvprintw(height-2, 7, "last=%.1f min=%.1f max=%.1f avg=%.1f %s ", values1[n], min1, max1, avg1, unit);
if(rate)
printw(" interval=%llds", (long long int)td);

if(two) {
mvaddch(height-1, 5, ' '|A_REVERSE);
mvprintw(height-1, 7, "last=%.1f min=%.1f max=%.1f avg=%.1f %s ", values2[n], min2, max2, avg2, unit);
if (v > 0) {
mvprintw(height-2, 7, "last=%.1f min=%.1f max=%.1f avg=%.1f %s ", values1[n], min1, max1, avg1, unit);
if(rate)
printw(" interval=%llds", (long long int)td);

if(two) {
mvaddch(height-1, 5, ' '|A_REVERSE);
mvprintw(height-1, 7, "last=%.1f min=%.1f max=%.1f avg=%.1f %s ", values2[n], min2, max2, avg2, unit);
}
}

plot_values(plotheight, plotwidth, values1, values2, max, hardmin, n, plotchar, max_errchar, min_errchar, hardmax);
Expand Down

0 comments on commit fb7b99d

Please sign in to comment.