mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-02 00:16:04 +03:00
Merge branch '3214_inode_info'
* 3214_inode_info: Ticket #3214: avoid invalid free nodes display.
This commit is contained in:
commit
1ba4e3015e
@ -149,8 +149,13 @@ info_show_info (WInfo * info)
|
||||
|
||||
case 16:
|
||||
widget_move (w, 16, 3);
|
||||
if (myfs_stats.nfree == 0 && myfs_stats.nodes == 0)
|
||||
if ((myfs_stats.nfree == 0 && myfs_stats.nodes == 0) ||
|
||||
(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);
|
||||
else if (myfs_stats.nodes == (uintmax_t) (-1))
|
||||
tty_printf ("%s %" PRIuMAX "/-", _("Free nodes:"), myfs_stats.nfree);
|
||||
else
|
||||
tty_printf ("%s %" PRIuMAX "/%" PRIuMAX " (%d%%)",
|
||||
_("Free nodes:"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user