aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-01 17:15:20 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-01 17:15:20 +0900
commitb7fce41348f2c8449e84c3078b67dad7cf78ace5 (patch)
tree09e7be5856265da78d3623273a039fb037a7ab42
parent2eb0cace848d7d0415a69be9159cfdf6b1bf1117 (diff)
downloadlibquotient-b7fce41348f2c8449e84c3078b67dad7cf78ace5.tar.gz
libquotient-b7fce41348f2c8449e84c3078b67dad7cf78ace5.zip
Log transferred bytes in PROFILER category
-rw-r--r--room.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/room.cpp b/room.cpp
index 519f08f5..0e4b1385 100644
--- a/room.cpp
+++ b/room.cpp
@@ -119,6 +119,9 @@ class Room::Private
if (p == 0)
p = -1;
}
+ if (p != -1)
+ qCDebug(PROFILER) << "Transfer progress:" << p << "/" << t
+ << "=" << llround(double(p) / t * 100) << "%";
progress = p; total = t;
}
};