summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebackup.c2
-rw-r--r--tools/idevicebackup2.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index d6d9228..159f3b1 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -275,6 +275,8 @@ static char* format_size_for_display(uint64_t size)
275 } else if (size >= 1000LL) { 275 } else if (size >= 1000LL) {
276 sz = ((double)size / 1000.0f); 276 sz = ((double)size / 1000.0f);
277 sprintf(buf, "%0.1f kB", sz); 277 sprintf(buf, "%0.1f kB", sz);
278 } else {
279 sprintf(buf, "%d Bytes", (int)size);
278 } 280 }
279 return strdup(buf); 281 return strdup(buf);
280} 282}
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)
240 } else if (size >= 1000LL) { 240 } else if (size >= 1000LL) {
241 sz = ((double)size / 1000.0f); 241 sz = ((double)size / 1000.0f);
242 sprintf(buf, "%0.1f kB", sz); 242 sprintf(buf, "%0.1f kB", sz);
243 } else {
244 sprintf(buf, "%d Bytes", (int)size);
243 } 245 }
244 return strdup(buf); 246 return strdup(buf);
245} 247}