back to space-separated values - ploot - simple plotting tools
(HTM) git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit ae31e2f1bccbf48ba05d29941119f73b34e1a66b
(DIR) parent f72c330d6fe40feff1b8295650056525a5905e15
(HTM) Author: Josuah Demangeon <mail@josuah.net>
Date: Wed, 7 Feb 2018 11:56:14 +0100
back to space-separated values
Diffstat:
M ploot.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/ploot.c b/ploot.c
@@ -183,7 +183,7 @@ read_simple(double buf[MAX_VAL])
}
/*
- * Read a format with comma separated time_t-double pairs, one per line and save
+ * Read a format with blank separated time_t-double pairs, one per line and save
* the last `MAX_WIDTH' values into `tbuf' and `vbuf' which must both be at
* least MAX_VAL wide and return a pointer to the last element of `vbuf' or
* NULL if the input contains error.
@@ -196,7 +196,7 @@ read_time_series(double *vbuf, time_t *tbuf)
time_t trbuf[MAX_VAL], tval;
len = LEN(vrbuf);
- for (p = pos = 0; scanf("%lf,%lf\n", &dval, &vval) > 0; p++) {
+ for (p = pos = 0; scanf("%lf %lf\n", &dval, &vval) > 0; p++) {
tval = (time_t)dval;
RING_ADD(trbuf, len, pos, tval);
RING_ADD(vrbuf, len, nul, vval);