summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-02-12 15:36:37 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-02-12 15:41:47 -0500
commit1a6e712246d01fd7e68b81116bfdae52026b4cd4 (patch)
tree27d193d20c18cbed88b6a7c0e8d2ed6a7ca4d5fd /src
parent4ddbaf8a44e4bf46d3ebe3c5afc957ecd07cfa0a (diff)
downloadbfs-1a6e712246d01fd7e68b81116bfdae52026b4cd4.tar.xz
eval: Add thousands separators to -status
Diffstat (limited to 'src')
-rw-r--r--src/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index 6d7afad..c4c79e0 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1120,12 +1120,12 @@ static void eval_status(struct bfs_eval *state, struct bfs_bar *bar, struct time
const struct BFTW *ftwbuf = state->ftwbuf;
dchar *status = NULL;
- dchar *rhs = dstrprintf(" (visited: %zu, depth: %2zu)", count, ftwbuf->depth);
+ dchar *rhs = dstrprintf(" (visited: %'zu, depth: %2zu)", count, ftwbuf->depth);
if (!rhs) {
return;
}
- size_t rhslen = dstrlen(rhs);
+ size_t rhslen = xstrwidth(rhs);
if (3 + rhslen > width) {
dstresize(&rhs, 0);
rhslen = 0;