fix: zoslonka

This commit is contained in:
zarazaex69
2026-04-20 04:01:25 +03:00
parent 6ed13ed6fd
commit ed4eaf6bd0
@@ -97,9 +97,11 @@ class RealPingWorkerService(
// Notify UI about the individual result
MessageUtil.sendMsg2UI(context, AppConfig.MSG_MEASURE_CONFIG_SUCCESS, Pair(guid, delay))
// Notify UI about progress (smooth updates)
val left = total - finished
MessageUtil.sendMsg2UI(context, AppConfig.MSG_MEASURE_CONFIG_NOTIFY, "$left / $total")
// Throttle progress updates: every 10 items or the very last one
if (finished % 10 == 0 || finished == total) {
val left = total - finished
MessageUtil.sendMsg2UI(context, AppConfig.MSG_MEASURE_CONFIG_NOTIFY, "$left / $total")
}
}
}