Skip to content

Commit

Permalink
fix: ad dmissing resampleConfig handling to scope select
Browse files Browse the repository at this point in the history
  • Loading branch information
spacehamster87 committed Oct 8, 2024
1 parent 322e161 commit ed991de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions web/frontend/src/job/Metric.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,24 @@
const selectedMetrics = [metricName]
$: if (selectedScope || pendingResolution) {
if (!selectedResolution) {
// Skips reactive data load on init
if (resampleConfig && !selectedResolution) {
// Skips reactive data load on init || Only if resampling is enabled
selectedResolution = Number(pendingResolution)
} else {
if (selectedScope == "load-all") {
selectedScopes = [...scopes, "socket", "core", "accelerator"]
}
if (pendingResolution) {
if (resampleConfig && pendingResolution) {
selectedResolution = Number(pendingResolution)
}
metricData = queryStore({
client: client,
query: subQuery,
variables: { dbid, selectedMetrics, selectedScopes, selectedResolution },
variables: { dbid, selectedMetrics, selectedScopes, selectedResolution: (resampleConfig ? selectedResolution : 0) },
// Never user network-only: causes reactive load-loop!
});
Expand Down

0 comments on commit ed991de

Please sign in to comment.