From 0a1693d9bbc0d72b6217d7da6f92e89aff078ee4 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Thu, 30 May 2024 23:46:25 +0300 Subject: [PATCH] Correct flex algo hashrate calc --- src/base/crypto/Algorithm.h | 4 ++-- src/version.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/crypto/Algorithm.h b/src/base/crypto/Algorithm.h index 4d0accae..00be3180 100644 --- a/src/base/crypto/Algorithm.h +++ b/src/base/crypto/Algorithm.h @@ -199,8 +199,8 @@ class Algorithm inline Id id() const { return m_id; } inline size_t l2() const { return l2(m_id); } inline uint32_t family() const { return family(m_id); } - inline uint32_t minIntensity() const { return ((family(m_id) == GHOSTRIDER) ? 8 : 1); }; - inline uint32_t maxIntensity() const { return isCN() ? 5 : ((family(m_id) == GHOSTRIDER) ? 8 : 1); }; + inline uint32_t minIntensity() const { return ((m_id == GHOSTRIDER_RTM) ? 8 : 1); }; + inline uint32_t maxIntensity() const { return isCN() ? 5 : ((m_id == GHOSTRIDER_RTM) ? 8 : 1); }; inline size_t l3() const { return l3(m_id); } diff --git a/src/version.h b/src/version.h index 6c675f5b..a9d670d6 100644 --- a/src/version.h +++ b/src/version.h @@ -22,7 +22,7 @@ #define APP_ID "xmrig-proxy" #define APP_NAME "xmrig-proxy" #define APP_DESC "XMRig Stratum proxy" -#define APP_VERSION "6.21.1-mo1" +#define APP_VERSION "6.21.1-mo2" #define APP_DOMAIN "xmrig.com" #define APP_SITE "www.xmrig.com" #define APP_COPYRIGHT "Copyright (C) 2016-2024 xmrig.com"