diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-02-12 15:36:37 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-02-12 15:41:47 -0500 |
commit | 1a6e712246d01fd7e68b81116bfdae52026b4cd4 (patch) | |
tree | 27d193d20c18cbed88b6a7c0e8d2ed6a7ca4d5fd /src | |
parent | 4ddbaf8a44e4bf46d3ebe3c5afc957ecd07cfa0a (diff) | |
download | bfs-1a6e712246d01fd7e68b81116bfdae52026b4cd4.tar.xz |
eval: Add thousands separators to -status
Diffstat (limited to 'src')
-rw-r--r-- | src/eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |