chatgui: fix RTT display 10x overstatement (DB stores 0.1ms, displayed as ms); remove unused rtt_avg_100

This commit is contained in:
Evgeny committed 2026-07-26 08:57:02 +03:00
1 parent 12904a97e0
commit 11ab897fe5
12 files changed
+85 -23

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ QVariant MemberListModel::data(const QModelIndex& index, int role) const {
if (role == Qt::DecorationRole) return QVariant::fromValue(QIcon(it->avatar));
if (role == Qt::UserRole + 1) {
QString sub;
if (it->rtt >= 0) sub += QString("rtt=%1ms").arg(it->rtt);
if (it->rtt >= 0) sub += QString("rtt=%1ms").arg(it->rtt / 10);
if (it->natType >= 0) {
static const char* nat[] = {"NET","DIR","EIM","STR"};
const char* nt = (it->natType <= 3) ? nat[it->natType] : "?";