tenox7 / ttyplot

a realtime plotting utility for terminal/console with data input from stdin
Apache License 2.0
956 stars 42 forks source link

stresstest: Turn garbage mode from additive to corrupting #137

Closed hartwork closed 7 months ago

hartwork commented 7 months ago

.. to help see that operation with -2 does not mix up data from the two channels when some values are unparsable.

Try this before and after:

# make
# ./stresstest -g -c -2 | ./ttyplot -2
hartwork commented 7 months ago

@edgar-bonet ignoring invalid tokens would get us into a situation similar to what we had with compare of ImageMagick: some values do unexpected things — in that case it was switching to scientific notation for some values — and then channel two misses a value and suddenly you have channel one and two flipped. For something like network in and out that would be a disaster. Therefore I think we cannot skip values. Happy to discuss this more, merging for now due to the approval and in the interest of moving forward.