limit log rate in UI

This commit is contained in:
arm64v8a
2023-05-17 22:04:05 +09:00
parent c58f57cd71
commit b36aad61f8
2 changed files with 8 additions and 10 deletions

View File

@@ -26,11 +26,6 @@ void MainWindow::setup_grpc() {
MW_show_log("[Error] gRPC: " + errStr);
},
"127.0.0.1:" + Int2String(NekoRay::dataStore->core_port), NekoRay::dataStore->core_token);
auto t = new QTimer();
connect(t, &QTimer::timeout, this, [=]() {
refresh_status();
});
t->start(2000);
// Looper
runOnNewThread([=] { NekoRay::traffic::trafficLooper->Loop(); });