From bfa68c45c0156140ba0d7691ecf3ea3f0b262f28 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 23 Feb 2016 14:06:38 +0100 Subject: [PATCH] Fix error --- src/Components/Modules/Auth.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Components/Modules/Auth.cpp b/src/Components/Modules/Auth.cpp index 067a99ba..36ca1049 100644 --- a/src/Components/Modules/Auth.cpp +++ b/src/Components/Modules/Auth.cpp @@ -66,6 +66,8 @@ namespace Components if (!lastCalc || (Game::Com_Milliseconds() - lastCalc) > 1000) { + lastCalc = Game::Com_Milliseconds(); + int diff = Game::Com_Milliseconds() - Auth::TokenContainer.startTime; double hashPMS = (Auth::TokenContainer.hashes * 1.0) / diff; double requiredHashes = std::pow(2, Auth::TokenContainer.targetLevel + 1) - Auth::TokenContainer.hashes;