diff options
Diffstat (limited to 'cpukit/libfs/src/rfs/rtems-rfs-shell.c')
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-shell.c b/cpukit/libfs/src/rfs/rtems-rfs-shell.c index 96c0c17890..b92041a419 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-shell.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-shell.c @@ -149,7 +149,7 @@ rtems_rfs_shell_data (rtems_rfs_file_system* fs, int argc, char *argv[]) rtems_rfs_shell_unlock_rfs (fs); - bpcent = (blocks * 1000) / rtems_rfs_fs_blocks (fs); + bpcent = (blocks * 1000) / (rtems_rfs_fs_blocks (fs) - 1); ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs); printf (" blocks used: %zd (%d.%d%%)\n", |