Measure proxy test durations with a monotonic clock

This commit is contained in:
evgeny committed 2026-10-06 22:31:53 +02:00
1 parent e86de44259
commit 67d1718450
2 files changed
+16 -10

No files matched your search

+2 -1
View File
@@ -136,7 +136,8 @@ void MessageList::createPoll() {
unique.insert(text); values.append(text); bytes += 2 + text.toUtf8().size();
}
if (!valid || values.size() < 2 || values.size() > CHAT_POLL_OPTIONS_MAX || bytes > CHAT_POLL_WIRE_MAX) {
QMessageBox::warning(&dialog, feedbackText("Create poll"), feedbackText("Enter a question and distinct options within the size limit.")); return;
QMessageBox::warning(&dialog, feedbackText("Create poll"),
feedbackText("Enter a question and distinct options within the size limit.")); return;
}
sendFeedback({{"cmd", "poll_create"}, {"question", title}, {"options", values},
{"mode", mode->currentIndex() ? "multiple" : "single"}, {"allow_custom_answer", custom->isChecked()}});