chatgui: fix RTT display 10x overstatement (DB stores 0.1ms, displayed as ms); remove unused rtt_avg_100
This commit is contained in:
1 parent
12904a97e0
commit
11ab897fe5
12 files changed
+85
-23
No files matched your search
@@ -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] : "?";
|
||||
|
||||
Reference in new issue
Block a user