We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e56668 commit 284107dCopy full SHA for 284107d
tlc.c
@@ -269,7 +269,7 @@ proceed_file(FILE *f, long long *lineno) {
269
for (;;) {
270
pfd[0].revents = 0;
271
if (pt) {
272
- clock_gettime(CLOCK_UPTIME, &now);
+ clock_gettime(CLOCK_MONOTONIC, &now);
273
timespecsub(&next, &now, pt);
274
if (timespeccmp(pt, &ts_zero, <))
275
timespecclear(pt);
@@ -283,7 +283,7 @@ proceed_file(FILE *f, long long *lineno) {
283
break;
284
}
285
286
287
if (pt)
288
timespecadd(&now, &interval, &next);
289
@@ -358,7 +358,7 @@ main(int argc, char *argv[]) {
358
if ((out_str = format_line(&out_str_len, lineno, "", 0)) == NULL)
359
err(1, "format_line");
360
display_line(out_str, out_str_len);
361
362
363
proceed_file(stdin, &lineno);
364
0 commit comments