[Libreoffice-commits] online.git: loolwsd/DocumentBroker.cpp loolwsd/TileCache.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Fri Sep 16 12:32:40 UTC 2016


 loolwsd/DocumentBroker.cpp |    2 +-
 loolwsd/TileCache.cpp      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ffa146a8700aee5ab9dc0d9b5192a11f96eeecf9
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Tue Sep 13 18:40:23 2016 -0400

    loolwsd: log tile version in stats
    
    Change-Id: Ia8a466b50f5236cb555c962830843c4d7d77fa97
    Reviewed-on: https://gerrit.libreoffice.org/28956
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/DocumentBroker.cpp b/loolwsd/DocumentBroker.cpp
index ff3fc1b..3c6c3fb 100644
--- a/loolwsd/DocumentBroker.cpp
+++ b/loolwsd/DocumentBroker.cpp
@@ -574,7 +574,7 @@ void DocumentBroker::handleTileCombinedRequest(TileCombined& tileCombined,
 
             assert(cachedTile->is_open());
             cachedTile->seekg(0, std::ios_base::end);
-            size_t pos = output.size();
+            const auto pos = output.size();
             std::streamsize size = cachedTile->tellg();
             output.resize(pos + size);
             cachedTile->seekg(0, std::ios_base::beg);
diff --git a/loolwsd/TileCache.cpp b/loolwsd/TileCache.cpp
index 0f6936a..b3cf0ea 100644
--- a/loolwsd/TileCache.cpp
+++ b/loolwsd/TileCache.cpp
@@ -188,7 +188,7 @@ void TileCache::saveTileAndNotify(const TileDesc& tile, const char *data, const
         // Remove subscriptions.
         if (tileBeingRendered->getVersion() == tile.getVersion())
         {
-            Log::debug() << "STATISTICS: tile internal roundtrip "
+            Log::debug() << "STATISTICS: tile " << tile.getVersion() << " internal roundtrip "
                          << tileBeingRendered->getElapsedTimeMs() << " ms." << Log::end;
             _tilesBeingRendered.erase(cachedName);
         }


More information about the Libreoffice-commits mailing list