diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-08-27 13:49:22 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-08-27 13:49:22 (GMT) |
commit | 13ccfeb578f86709ce5cb17c2cde94a5320da379 (patch) | |
tree | 47a3a27efdff5670d5e7c3e2a45c6ac7766b9086 /demos | |
parent | 2e21223f7ebef714191dedfe2c5ea31ee033f226 (diff) | |
download | Qt-13ccfeb578f86709ce5cb17c2cde94a5320da379.zip Qt-13ccfeb578f86709ce5cb17c2cde94a5320da379.tar.gz Qt-13ccfeb578f86709ce5cb17c2cde94a5320da379.tar.bz2 |
Demo browser: Less verbose statistics in console output
Reviewed-by: TrustMe
Diffstat (limited to 'demos')
-rw-r--r-- | demos/browser/networkaccessmanager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/demos/browser/networkaccessmanager.cpp b/demos/browser/networkaccessmanager.cpp index 3ce9c08..1e6dffd 100644 --- a/demos/browser/networkaccessmanager.cpp +++ b/demos/browser/networkaccessmanager.cpp @@ -106,10 +106,13 @@ void NetworkAccessManager::requestFinished(QNetworkReply *reply) if (reply->attribute(QNetworkRequest::ConnectionEncryptedAttribute).toBool() == true) requestFinishedSecureCount++; + if (requestFinishedCount % 10) + return; + double pctCached = (double(requestFinishedFromCacheCount) * 100.0/ double(requestFinishedCount)); double pctPipelined = (double(requestFinishedPipelinedCount) * 100.0/ double(requestFinishedCount)); double pctSecure = (double(requestFinishedSecureCount) * 100.0/ double(requestFinishedCount)); - qDebug("%lli requests [%3.2f%% from cache] [%3.2f%% pipelined] [%3.2f%% SSL/TLS]", requestFinishedCount, pctCached, pctPipelined, pctSecure); + qDebug("STATS [%lli requests total] [%3.2f%% from cache] [%3.2f%% pipelined] [%3.2f%% SSL/TLS]", requestFinishedCount, pctCached, pctPipelined, pctSecure); } |