From 11fdf911960f6d5ad5f4a85dab663a424427db84 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 20 Jun 2019 19:49:19 +0800 Subject: [PATCH] Suppress compiler warning The debug message is emitting a format mismatch warning. Fixup 4880dc812ce2142f42a289e6f337a97bfd445982. And add curly brackets to if statement. --- src/base/bittorrent/session.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index bdb8329dd..01ea6c4eb 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -1538,13 +1538,12 @@ void Session::processShareLimits() if (torrent->seedingTimeLimit() != TorrentHandle::NO_SEEDING_TIME_LIMIT) { const qlonglong seedingTimeInMinutes = torrent->seedingTime() / 60; int seedingTimeLimit = torrent->seedingTimeLimit(); - if (seedingTimeLimit == TorrentHandle::USE_GLOBAL_SEEDING_TIME) + if (seedingTimeLimit == TorrentHandle::USE_GLOBAL_SEEDING_TIME) { // If Global Seeding Time Limit is really set... seedingTimeLimit = globalMaxSeedingMinutes(); + } if (seedingTimeLimit >= 0) { - qDebug("Seeding Time: %d (limit: %d)", seedingTimeInMinutes, seedingTimeLimit); - if ((seedingTimeInMinutes <= TorrentHandle::MAX_SEEDING_TIME) && (seedingTimeInMinutes >= seedingTimeLimit)) { Logger *const logger = Logger::instance(); if (m_maxRatioAction == Remove) {