From 88ee7b4a543f9952601e458c0753a82321852b09 Mon Sep 17 00:00:00 2001 From: divocat Date: Tue, 7 Oct 2025 23:42:51 +0300 Subject: [PATCH] feat: change get latency class coloring --- fe-app-podkop/src/podkop/tabs/dashboard/renderSections.ts | 4 ++-- .../htdocs/luci-static/resources/view/podkop/main.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fe-app-podkop/src/podkop/tabs/dashboard/renderSections.ts b/fe-app-podkop/src/podkop/tabs/dashboard/renderSections.ts index b302ba7..640a813 100644 --- a/fe-app-podkop/src/podkop/tabs/dashboard/renderSections.ts +++ b/fe-app-podkop/src/podkop/tabs/dashboard/renderSections.ts @@ -50,11 +50,11 @@ export function renderDefaultState({ return 'pdk_dashboard-page__outbound-grid__item__latency--empty'; } - if (outbound.latency < 200) { + if (outbound.latency < 800) { return 'pdk_dashboard-page__outbound-grid__item__latency--green'; } - if (outbound.latency < 400) { + if (outbound.latency < 1500) { return 'pdk_dashboard-page__outbound-grid__item__latency--yellow'; } diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js index 41331df..32337ff 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js @@ -1274,10 +1274,10 @@ function renderDefaultState({ if (!outbound.latency) { return "pdk_dashboard-page__outbound-grid__item__latency--empty"; } - if (outbound.latency < 200) { + if (outbound.latency < 800) { return "pdk_dashboard-page__outbound-grid__item__latency--green"; } - if (outbound.latency < 400) { + if (outbound.latency < 1500) { return "pdk_dashboard-page__outbound-grid__item__latency--yellow"; } return "pdk_dashboard-page__outbound-grid__item__latency--red";