Skip to content

Commit 806c410

Browse files
PeterYurkovichopenshift-cherrypick-robot
authored andcommitted
fix: remove random multiplication
1 parent 6e1e942 commit 806c410

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

web/src/components/MetricsPage.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,8 @@ export const QueryTable: FC<QueryTableProps> = ({ index, namespace, customDataso
630630
(state: MonitoringState) =>
631631
getObserveState(plugin, state).queryBrowser.queries[index]?.isExpanded,
632632
);
633-
const pollInterval = useSelector(
634-
(state: MonitoringState) =>
635-
Number(getObserveState(plugin, state).queryBrowser.pollInterval) * 15 * 1000,
633+
const pollInterval = useSelector((state: MonitoringState) =>
634+
Number(getObserveState(plugin, state).queryBrowser.pollInterval),
636635
);
637636
const query = useSelector(
638637
(state: MonitoringState) => getObserveState(plugin, state).queryBrowser.queries[index]?.query,
@@ -1248,9 +1247,8 @@ const IntervalDropdown = () => {
12481247
(v: number) => dispatch(queryBrowserSetPollInterval(v)),
12491248
[dispatch],
12501249
);
1251-
const pollInterval = useSelector(
1252-
(state: MonitoringState) =>
1253-
Number(getObserveState(plugin, state).queryBrowser.pollInterval) * 15 * 1000,
1250+
const pollInterval = useSelector((state: MonitoringState) =>
1251+
Number(getObserveState(plugin, state).queryBrowser.pollInterval),
12541252
);
12551253
return <DropDownPollInterval setInterval={setInterval} selectedInterval={pollInterval} />;
12561254
};

0 commit comments

Comments
 (0)