From e039eeaab854e5dc5058a6e3f4a9400af518b2a5 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 9 Mar 2021 01:13:37 +0100 Subject: [PATCH] don't count pps changes towards heartbeat hot-changes --- src/THeartbeatThread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/THeartbeatThread.cpp b/src/THeartbeatThread.cpp index cc980f5..579dd86 100644 --- a/src/THeartbeatThread.cpp +++ b/src/THeartbeatThread.cpp @@ -34,6 +34,8 @@ void THeartbeatThread::operator()() { if (!Application::Settings.CustomIP.empty()) Body += "&ip=" + Application::Settings.CustomIP; + Body += "&pps=" + Application::PPS(); + T = Http::POST("beammp.com", "/heartbeatv2", {}, Body, false); if (T.substr(0, 2) != "20") { @@ -73,7 +75,6 @@ std::string THeartbeatThread::GenerateCall() { << "&version=" << Application::ServerVersion() << "&clientversion=" << Application::ClientVersion() << "&name=" << Application::Settings.ServerName - << "&pps=" << Application::PPS() << "&modlist=" << mResourceManager.TrimmedList() << "&modstotalsize=" << mResourceManager.MaxModSize() << "&modstotal=" << mResourceManager.ModsLoaded()