diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2015-12-28 03:39:56 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2015-12-30 02:08:50 +0300 |
commit | 3910dc9674d23a68a2450f12ebeb9435ba1b722d (patch) | |
tree | e6f54706dc33687481c840077844fd1256c358da /src/mumble/Usage.cpp | |
parent | 9db30159d0da955ec59084f32904dcbcd43a228a (diff) |
Remove all REPORT_JITTER-related code.
Diffstat (limited to 'src/mumble/Usage.cpp')
-rw-r--r-- | src/mumble/Usage.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/mumble/Usage.cpp b/src/mumble/Usage.cpp index 8b343ba07..e6647fd8c 100644 --- a/src/mumble/Usage.cpp +++ b/src/mumble/Usage.cpp @@ -50,16 +50,6 @@ Usage::Usage(QObject *p) : QObject(p) { QTimer::singleShot(60 * 10 * 1000, this, SLOT(reportJitter())); } -#ifdef REPORT_JITTER -void Usage::addJitter(ClientUser *cu) { - QMutexLocker qml(& cu->qmTiming); - if (! cu->qlTiming.isEmpty()) { - qdsReport << QByteArray::fromHex(cu->qsHash.toUtf8()); - qdsReport << cu->qlTiming; - } -} -#endif - void Usage::registerUsage() { if (! g.s.bUsage || g.s.uiUpdateCounter == 0) // Only register usage if allowed by the user and first wizard run has finished return; @@ -102,26 +92,3 @@ void Usage::registerUsage() { connect(rep, SIGNAL(finished()), rep, SLOT(deleteLater())); } -void Usage::reportJitter() { -#ifdef REPORT_JITTER - QTimer::singleShot(60 * 10 * 1000, this, SLOT(reportJitter())); - - if (qbReport.size() < 1024) - return; - - QNetworkRequest req(QUrl(QLatin1String("http://mumble.info/jitter.cgi"))); - Network::prepareRequest(req); - req.setHeader(QNetworkRequest::ContentTypeHeader, QLatin1String("application/octet-stream")); - - QNetworkReply *rep = g.nam->post(req, qCompress(qbReport.buffer(), 9)); - connect(rep, SIGNAL(finished()), rep, SLOT(deleteLater())); - - qbReport.close(); - qbReport.setData(QByteArray()); - - qbReport.open(QBuffer::ReadWrite); - qdsReport.setDevice(&qbReport); - qdsReport.setVersion(QDataStream::Qt_4_4); - qdsReport << static_cast<unsigned int>(2); -#endif -} |