Skip to content

Commit b08b437

Browse files
committed
dashboard: don't display UPI panels if there is no UPI
fixes #939 Change-Id: I01cefe96c5a1dbd6d6058b78579e737565d7f7a5
1 parent c080702 commit b08b437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dashboard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ std::string getPCMDashboardJSON(const PCMDashboardType type, int ns, int nu, int
803803
}
804804
auto upi = [&](const std::string & m, const bool utilization)
805805
{
806-
for (size_t s = 0; s < NumSockets; ++s)
806+
for (size_t s = 0; s < NumSockets && NumUPILinksPerSocket > 0; ++s)
807807
{
808808
const auto S = std::to_string(s);
809809
auto panel = std::make_shared<TimeSeriesPanel>(0, y, width, height, std::string("Socket") + S + " " + pcm->xPI() + " " + m, utilization?"%": "MByte/sec", false);

0 commit comments

Comments
 (0)