Added total memory size to summary.
This commit is contained in:
parent
ada99a6dd1
commit
33f6b91146
3 changed files with 8 additions and 3 deletions
|
@ -104,6 +104,11 @@ static void print_cpu(Config *)
|
||||||
|
|
||||||
static void print_threads(Config *config)
|
static void print_threads(Config *config)
|
||||||
{
|
{
|
||||||
|
Log::print(GREEN_BOLD(" * ") WHITE_BOLD("%-13s") CYAN_BOLD("%.1f GB"),
|
||||||
|
"MEMORY",
|
||||||
|
static_cast<double>(uv_get_total_memory()) / (1024U * 1024U * 1024U)
|
||||||
|
);
|
||||||
|
|
||||||
Log::print(GREEN_BOLD(" * ") WHITE_BOLD("%-13s") WHITE_BOLD("%s%d%%"),
|
Log::print(GREEN_BOLD(" * ") WHITE_BOLD("%-13s") WHITE_BOLD("%s%d%%"),
|
||||||
"DONATE",
|
"DONATE",
|
||||||
config->pools().donateLevel() == 0 ? RED_BOLD_S : "",
|
config->pools().donateLevel() == 0 ? RED_BOLD_S : "",
|
||||||
|
|
|
@ -64,7 +64,7 @@ namespace xmrig {
|
||||||
extern template class Threads<CudaThreads>;
|
extern template class Threads<CudaThreads>;
|
||||||
|
|
||||||
|
|
||||||
constexpr const size_t oneMiB = 1024u * 1024u;
|
constexpr const size_t oneMiB = 1024U * 1024U;
|
||||||
static const char *kLabel = "CUDA";
|
static const char *kLabel = "CUDA";
|
||||||
static const char *tag = GREEN_BG_BOLD(WHITE_BOLD_S " nv ");
|
static const char *tag = GREEN_BG_BOLD(WHITE_BOLD_S " nv ");
|
||||||
static const String kType = "cuda";
|
static const String kType = "cuda";
|
||||||
|
@ -249,7 +249,7 @@ public:
|
||||||
|
|
||||||
std::string fans;
|
std::string fans;
|
||||||
if (!health.fanSpeed.empty()) {
|
if (!health.fanSpeed.empty()) {
|
||||||
for (uint32_t i = 0; i < health.fanSpeed.size(); ++i) {
|
for (size_t i = 0; i < health.fanSpeed.size(); ++i) {
|
||||||
fans += " fan" + std::to_string(i) + ":" CYAN_BOLD_S + std::to_string(health.fanSpeed[i]) + "%" CLEAR;
|
fans += " fan" + std::to_string(i) + ":" CYAN_BOLD_S + std::to_string(health.fanSpeed[i]) + "%" CLEAR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace xmrig {
|
||||||
extern template class Threads<OclThreads>;
|
extern template class Threads<OclThreads>;
|
||||||
|
|
||||||
|
|
||||||
constexpr const size_t oneMiB = 1024u * 1024u;
|
constexpr const size_t oneMiB = 1024U * 1024U;
|
||||||
static const char *tag = MAGENTA_BG_BOLD(WHITE_BOLD_S " ocl ");
|
static const char *tag = MAGENTA_BG_BOLD(WHITE_BOLD_S " ocl ");
|
||||||
static const String kType = "opencl";
|
static const String kType = "opencl";
|
||||||
static std::mutex mutex;
|
static std::mutex mutex;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue