From 62f16c72e4416acf369640a0dff4960bc3e2c0a5 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 5 Oct 2011 22:49:38 +0200 Subject: Fix format_size_for_display for size < 1000 --- tools/idevicebackup2.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/idevicebackup2.c') diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 57c7865..30e3724 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -240,6 +240,8 @@ static char* format_size_for_display(uint64_t size) } else if (size >= 1000LL) { sz = ((double)size / 1000.0f); sprintf(buf, "%0.1f kB", sz); + } else { + sprintf(buf, "%d Bytes", (int)size); } return strdup(buf); } -- cgit v1.1-32-gdbae