mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Cosmetics: add spaces around slash in statistics messages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
bb3ace13f1
commit
21c45e8a7a
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user