[Libreoffice-commits] online.git: loolwsd/LOOLStress.cpp
Miklos Vajna
vmiklos at collabora.co.uk
Wed Sep 14 07:21:27 UTC 2016
loolwsd/LOOLStress.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit a652a013aac06a848c9c7b82671b43d7be5cbbc1
Author: Miklos Vajna <vmiklos at 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;
More information about the Libreoffice-commits
mailing list