ttyplot

Realtime terminal plotter
git clone git://git.sgregoratto.me/ttyplot
Log | Files | Refs | README | LICENSE

commit 5e7a190a80c6a678b44a231513302d40fe990ca9
parent 81ca127bd94a90dd5e93aa9816ec9bc44fba63ce
Author: Antoni Sawicki <tenox@google.com>
Date:   Mon, 29 Apr 2019 01:03:12 -0700

if value < 0 insert 0

Diffstat:
Mttyplot.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/ttyplot.c b/ttyplot.c @@ -223,6 +223,11 @@ int main(int argc, char *argv[]) { break; } + if(values1[n] < 0) + values1[n] = 0; + if(values2[n] < 0) + values2[n] = 0; + if(rate) { t2=t1; time(&t1);