back to space-separated values - ploot - simple plotting tools | |
git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit ae31e2f1bccbf48ba05d29941119f73b34e1a66b | |
parent f72c330d6fe40feff1b8295650056525a5905e15 | |
Author: Josuah Demangeon <[email protected]> | |
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(-) | |
--- | |
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 sa… | |
+ * Read a format with blank separated time_t-double pairs, one per line and sa… | |
* 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); |