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

Commit ee878753 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

adb: Don't report negative number of bytes after pushing file > 2 gigabytes



BUG: 3198322

Change-Id: I6067857b9490984a21b597f6ee338446a9decaf5
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 3227b5c2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -57,9 +57,9 @@ static void END()
    if (t == 0)  /* prevent division by 0 :-) */
        t = 1000000;

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

void sync_quit(int fd)