Skip to content

Commit

Permalink
2.14.5
Browse files Browse the repository at this point in the history
  • Loading branch information
IndeedMiners committed Jun 16, 2019
1 parent cb7a08b commit f3c2d4a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 24 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.14.4
- [#249](https://github.com/xmrig/xmrig-amd/pull/249) Added workaround for some drivers memory leak.
- In HTTP API for unknown hashrate now used `null` instead of `0.0`.
- Fixed MSVC 2019 version detection.
- Removed obsolete automatic variants.

# v2.14.1
- [#228](https://github.com/xmrig/xmrig-amd/issues/228#issuecomment-472287697) Fixed macOS support.
- [#235](https://github.com/xmrig/xmrig-amd/issues/235) Fixed autoconf for `cn/r` and other recently added algorithms.
Expand Down
8 changes: 5 additions & 3 deletions src/api/ApiRouter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@
#include "workers/Workers.h"


static inline double normalize(double d)
static inline rapidjson::Value normalize(double d)
{
using namespace rapidjson;

if (!isnormal(d)) {
return 0.0;
return Value(kNullType);
}

return floor(d * 100.0) / 100.0;
return Value(floor(d * 100.0) / 100.0);
}


Expand Down
18 changes: 0 additions & 18 deletions src/common/net/Job.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,24 +127,6 @@ bool xmrig::Job::setBlob(const char *blob)
m_algorithm.setVariant(variant());
}

if (!m_algorithm.isForced()) {
if (m_algorithm.variant() == VARIANT_XTL && m_blob[0] >= 9) {
m_algorithm.setVariant(VARIANT_HALF);
}
else if (m_algorithm.variant() == VARIANT_MSR && m_blob[0] >= 8) {
m_algorithm.setVariant(VARIANT_HALF);
}
else if (m_algorithm.variant() == VARIANT_WOW && m_blob[0] < 11) {
m_algorithm.setVariant(VARIANT_2);
}
else if (m_algorithm.variant() == VARIANT_RWZ && m_blob[0] < 12) {
m_algorithm.setVariant(VARIANT_2);
}
else if (m_algorithm.variant() == VARIANT_ZLS && m_blob[0] < 8) {
m_algorithm.setVariant(VARIANT_2);
}
}

# ifdef XMRIG_PROXY_PROJECT
memset(m_rawBlob, 0, sizeof(m_rawBlob));
memcpy(m_rawBlob, blob, m_size * 2);
Expand Down
8 changes: 5 additions & 3 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,20 @@
#define APP_ID "xmrig-amd"
#define APP_NAME "XMRig-AMD"
#define APP_DESC "XMRig OpenCL miner"
#define APP_VERSION "2.14.3.1-dev"
#define APP_VERSION "2.14.5-dev"
#define APP_DOMAIN "xmrig.com"
#define APP_SITE "www.xmrig.com"
#define APP_COPYRIGHT "Copyright (C) 2016-2019 xmrig.com"
#define APP_KIND "amd"

#define APP_VER_MAJOR 2
#define APP_VER_MINOR 14
#define APP_VER_PATCH 2
#define APP_VER_PATCH 5

#ifdef _MSC_VER
# if (_MSC_VER >= 1910)
# if (_MSC_VER >= 1920)
# define MSVC_VERSION 2019
# elif (_MSC_VER >= 1910 && _MSC_VER < 1920)
# define MSVC_VERSION 2017
# elif _MSC_VER == 1900
# define MSVC_VERSION 2015
Expand Down

0 comments on commit f3c2d4a

Please sign in to comment.