Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 865bb05d authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "adb: fix reported transfer size for transfer over 4 GiB"

parents 5f8d9c01 d9a1430f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@
#include "file_sync_service.h"


static unsigned total_bytes;
static unsigned long long total_bytes;
static long long start_time;

static long long NOW()
@@ -58,8 +58,8 @@ static void END()
        t = 1000000;

    fprintf(stderr,"%lld KB/s (%lld bytes in %lld.%03llds)\n",
            ((((long long) total_bytes) * 1000000LL) / t) / 1024LL,
            (long long) total_bytes, (t / 1000000LL), (t % 1000000LL) / 1000LL);
            ((total_bytes * 1000000LL) / t) / 1024LL,
            total_bytes, (t / 1000000LL), (t % 1000000LL) / 1000LL);
}

void sync_quit(int fd)