v0.33.3_hotfix
This commit is contained in:
1 parent
78ad28ef4d
commit
de090d20fa
7 files changed
+162
-11
No files matched your search
@@ -154,9 +154,9 @@ window.rustProxyWebOverview = (() => {
|
||||
meter("www_error_rate", r?.errorRate);
|
||||
show("www_error_rate-detail", t("webMetricErrorRateHelp"));
|
||||
show("www_php_requests-value", fmtRate(r?.phpRps));
|
||||
if (record) {
|
||||
if (record && r) {
|
||||
const values = histories.get("www_php_requests") || [];
|
||||
values.push(r?.phpRps ?? null); window.rustProxyOverviewSamples.trim(values);
|
||||
values.push(r.phpRps); window.rustProxyOverviewSamples.trim(values);
|
||||
histories.set("www_php_requests", values);
|
||||
}
|
||||
$(`www_php_requests-line`)?.setAttribute("points", smallPath(histories.get("www_php_requests") || []));
|
||||
@@ -166,7 +166,10 @@ window.rustProxyWebOverview = (() => {
|
||||
};
|
||||
for (const [id, names] of Object.entries(seriesNames)) {
|
||||
const series = histories.get(id) || names.map(() => []);
|
||||
if (record) {
|
||||
// A resumed/overdue interval has no rate; skipping that entire
|
||||
// snapshot keeps existing paths connected without inventing 0/s.
|
||||
// A genuinely unavailable series inside a valid interval stays null.
|
||||
if (record && r) {
|
||||
names.forEach((_, i) => { series[i].push(set[id]?.[i] ?? null); window.rustProxyOverviewSamples.trim(series[i]); });
|
||||
histories.set(id, series);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user