From 21c45e8a7ae6248a3b6ef50de098fdfcff4360d4 Mon Sep 17 00:00:00 2001 From: Ovsyannikov Sergey E Date: Sat, 9 Jul 2022 19:55:43 +0300 Subject: [PATCH] Cosmetics: add spaces around slash in statistics messages. Signed-off-by: Andrew Borodin --- src/filemanager/filegui.c | 4 ++-- src/filemanager/info.c | 8 ++++---- src/filemanager/panel.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/filemanager/filegui.c b/src/filemanager/filegui.c index 50cae4c2b..cd1154df8 100644 --- a/src/filemanager/filegui.c +++ b/src/filemanager/filegui.c @@ -1024,7 +1024,7 @@ file_progress_show_count (file_op_context_t * ctx, size_t done, size_t total) return; if (ctx->progress_totals_computed) - label_set_textv (ui->total_files_processed_label, _("Files processed: %zu/%zu"), done, + label_set_textv (ui->total_files_processed_label, _("Files processed: %zu / %zu"), done, total); else label_set_textv (ui->total_files_processed_label, _("Files processed: %zu"), done); @@ -1100,7 +1100,7 @@ file_progress_show_total (file_op_total_context_t * tctx, file_op_context_t * ct else { size_trunc_len (buffer3, 5, ctx->progress_bytes, 0, panels_options.kilobyte_si); - hline_set_textv (ui->total_bytes_label, _(" Total: %s/%s "), buffer2, buffer3); + hline_set_textv (ui->total_bytes_label, _(" Total: %s / %s "), buffer2, buffer3); } } } diff --git a/src/filemanager/info.c b/src/filemanager/info.c index 586744d96..cb117ac99 100644 --- a/src/filemanager/info.c +++ b/src/filemanager/info.c @@ -163,11 +163,11 @@ info_show_info (WInfo * info) (myfs_stats.nfree == (uintmax_t) (-1) && myfs_stats.nodes == (uintmax_t) (-1))) tty_print_string (_("No node information")); else if (myfs_stats.nfree == (uintmax_t) (-1)) - tty_printf ("%s -/%" PRIuMAX, _("Free nodes:"), myfs_stats.nodes); + tty_printf ("%s - / %" PRIuMAX, _("Free nodes:"), myfs_stats.nodes); else if (myfs_stats.nodes == (uintmax_t) (-1)) - tty_printf ("%s %" PRIuMAX "/-", _("Free nodes:"), myfs_stats.nfree); + tty_printf ("%s %" PRIuMAX " / -", _("Free nodes:"), myfs_stats.nfree); else - tty_printf ("%s %" PRIuMAX "/%" PRIuMAX " (%d%%)", + tty_printf ("%s %" PRIuMAX " / %" PRIuMAX " (%d%%)", _("Free nodes:"), myfs_stats.nfree, myfs_stats.nodes, myfs_stats.nodes == 0 ? 0 : @@ -183,7 +183,7 @@ info_show_info (WInfo * info) size_trunc_len (buffer1, 5, myfs_stats.avail, 1, panels_options.kilobyte_si); size_trunc_len (buffer2, 5, myfs_stats.total, 1, panels_options.kilobyte_si); - tty_printf (_("Free space: %s/%s (%d%%)"), buffer1, buffer2, + tty_printf (_("Free space: %s / %s (%d%%)"), buffer1, buffer2, myfs_stats.total == 0 ? 0 : (int) (100 * (long double) myfs_stats.avail / myfs_stats.total)); } diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c index 6e8a0893f..bb87875a1 100644 --- a/src/filemanager/panel.c +++ b/src/filemanager/panel.c @@ -1172,7 +1172,7 @@ show_free_space (const WPanel * panel) panels_options.kilobyte_si); size_trunc_len (buffer2, sizeof (buffer2) - 1, myfs_stats.total, 1, panels_options.kilobyte_si); - g_snprintf (tmp, sizeof (tmp), " %s/%s (%d%%) ", buffer1, buffer2, + g_snprintf (tmp, sizeof (tmp), " %s / %s (%d%%) ", buffer1, buffer2, myfs_stats.total == 0 ? 0 : (int) (100 * (long double) myfs_stats.avail / myfs_stats.total)); widget_gotoyx (w, w->rect.lines - 1, w->rect.cols - 2 - (int) strlen (tmp));