diff --git a/client/portstatsmodel.cpp b/client/portstatsmodel.cpp index cd53d4d..1658980 100644 --- a/client/portstatsmodel.cpp +++ b/client/portstatsmodel.cpp @@ -77,7 +77,7 @@ void PortStatsModel::getDomainIndexes(const QModelIndex &index, if (portGroupIdx) { if (numPorts.at(portGroupIdx -1)) - portIdx = (portNum - 1) % numPorts.at(portGroupIdx - 1); + portIdx = (portNum - 1) - numPorts.at(portGroupIdx - 1); else portIdx = portNum - 1; }