loolwsd/LOOLStress.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit a652a013aac06a848c9c7b82671b43d7be5cbbc1 Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Wed Sep 14 09:20:35 2016 +0200 LOOLStress: unused using declaration Change-Id: If20c38a4575074e7ca30069115002aadd1a1847f diff --git a/loolwsd/LOOLStress.cpp b/loolwsd/LOOLStress.cpp index 8290298..a296571 100644 --- a/loolwsd/LOOLStress.cpp +++ b/loolwsd/LOOLStress.cpp @@ -66,7 +66,6 @@ protected: using namespace LOOLProtocol; -using Poco::Net::HTTPClientSession; using Poco::Net::HTTPRequest; using Poco::Net::HTTPResponse; using Poco::Runnable; @@ -503,12 +502,12 @@ int Stress::main(const std::vector<std::string>& args) std::cout << "Tile best: " << renderingStats[0] << " microsecs, rendering 95th percentile: " << percentile(renderingStats, 95) << " microsecs." << std::endl; std::cout << "Cached best: " << cachedStats[0] << " microsecs, tile 95th percentile: " << percentile(cachedStats, 95) << " microsecs." << std::endl; - const auto renderingTime = std::accumulate(renderingStats.begin(), renderingStats.end(), 0); + const auto renderingTime = std::accumulate(renderingStats.begin(), renderingStats.end(), 0L); const double renderedPixels = 256 * 256 * renderingStats.size(); const auto pixelsPerSecRendered = renderedPixels / renderingTime; std::cout << "Rendering power: " << pixelsPerSecRendered << " MPixels/sec." << std::endl; - const auto cacheTime = std::accumulate(cachedStats.begin(), cachedStats.end(), 0); + const auto cacheTime = std::accumulate(cachedStats.begin(), cachedStats.end(), 0L); const double cachePixels = 256 * 256 * cachedStats.size(); const auto pixelsPerSecCached = cachePixels / cacheTime; std::cout << "Cache power: " << pixelsPerSecCached << " MPixels/sec." << std::endl; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits