summaryrefslogtreecommitdiff
path: root/adb/file_sync_client.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2016-03-01 11:46:02 -0800
committerJosh Gao <jmgao@google.com>2016-03-03 15:46:50 -0800
commitf22bc60fc9b16148cd82e2c23b22ca3f62b00d96 (patch)
tree04d5e87d85a9ee137ce194668930edb69cb79032 /adb/file_sync_client.cpp
parentf48503b4a0b5075fa6919260d873887d14916f2d (diff)
adb: report progress for small files.
Bug: http://b/27407725 Change-Id: I7515144402a487fb3d4d403e2f5f82423c1b5ed6 (cherry picked from commit 9fd2f77dcce09aa38bf8f1798ebaac2abeef1598)
Diffstat (limited to 'adb/file_sync_client.cpp')
-rw-r--r--adb/file_sync_client.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/adb/file_sync_client.cpp b/adb/file_sync_client.cpp
index 3a81ce6aca..cdbff11de3 100644
--- a/adb/file_sync_client.cpp
+++ b/adb/file_sync_client.cpp
@@ -188,6 +188,7 @@ class SyncConnection {
WriteOrDie(lpath, rpath, &buf[0], (p - &buf[0]));
expect_done_ = true;
total_bytes_ += data_length;
+ ReportProgress(rpath, data_length, data_length);
return true;
}