From 1cafdaab9993cca19d825af9ca2e9146b51fb7ae Mon Sep 17 00:00:00 2001 From: Otto Bruggeman Date: Wed, 23 Apr 2025 12:44:00 +0200 Subject: [PATCH] Check for more than 1 socket before adding upi info to the dashboard --- src/dashboard.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dashboard.cpp b/src/dashboard.cpp index 79743780..ceaee581 100644 --- a/src/dashboard.cpp +++ b/src/dashboard.cpp @@ -803,6 +803,8 @@ std::string getPCMDashboardJSON(const PCMDashboardType type, int ns, int nu, int } auto upi = [&](const std::string & m, const bool utilization) { + // For UPI we need a minimum of 2 sockets + if ( 1 >= NumSockets ) return; for (size_t s = 0; s < NumSockets; ++s) { const auto S = std::to_string(s);