]> sigrok.org Git - libsigrok.git/commit
output/csv: complete and improve timestamp construction support
authorGerhard Sittig <redacted>
Wed, 5 Aug 2020 17:52:17 +0000 (19:52 +0200)
committerGerhard Sittig <redacted>
Wed, 5 Aug 2020 19:03:11 +0000 (21:03 +0200)
commit4feb6ec9a2c818cb7cad508ee4284ce2386ccd41
tree9433066e36ca7260e7ee2d24c9b25ce01b73d7e0
parent01ac3eedfa23d8fea0804426393404e19e70035b
output/csv: complete and improve timestamp construction support

Unbreak the timestamp calculation when session data is received in
multiple packets. Avoid a division by zero when the samplerate is not
known yet the time column is requested. Only calculate timestamps when
the time column is requested. Use floating point during the scaling,
only convert to integer immediately before printing. Change line breaks
to not split a complex sub-expression across several lines.
src/output/csv.c