Normalize DMI memory slot name.

This commit is contained in:
XMRig 2021-01-29 04:23:50 +07:00
parent 9ca1a6129b
commit f68b105bd9
No known key found for this signature in database
GPG key ID: 446A53638BE94409
3 changed files with 31 additions and 3 deletions

View file

@ -155,7 +155,7 @@ static void print_memory(const Config *config)
if (memory.size()) {
Log::print(WHITE_BOLD(" %-13s") "%s: " CYAN_BOLD("%" PRIu64) CYAN(" GB ") WHITE_BOLD("%s @ %" PRIu64 " MHz ") BLACK_BOLD("%s"),
"", memory.slot().data(), memory.size() / oneGiB, memory.type(), memory.speed() / 1000000ULL, memory.product().data());
"", memory.id().data(), memory.size() / oneGiB, memory.type(), memory.speed() / 1000000ULL, memory.product().data());
}
else if (printEmpty) {
Log::print(WHITE_BOLD(" %-13s") "%s: " BLACK_BOLD("<empty>"), "", memory.slot().data());