aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-size.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-cell-size.c')
-rw-r--r--widgets/table/e-cell-size.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/table/e-cell-size.c b/widgets/table/e-cell-size.c
index 09133d9dff..3d406f2b6d 100644
--- a/widgets/table/e-cell-size.c
+++ b/widgets/table/e-cell-size.c
@@ -21,14 +21,14 @@ ecd_get_text(ECellText *cell, ETableModel *model, int col, int row)
gfloat fsize;
if (size < 1024) {
- return g_strdup_printf ("%d", size);
+ return g_strdup_printf ("%d bytes", size);
} else {
fsize = ((gfloat) size) / 1024.0;
if (fsize < 1024.0) {
- return g_strdup_printf ("%.2f K", fsize);
+ return g_strdup_printf ("%d K", (int)fsize);
} else {
fsize /= 1024.0;
- return g_strdup_printf ("%.2f M", fsize);
+ return g_strdup_printf ("%.1f MB", fsize);
}
}
}