Skip to content

Commit

Permalink
fix: auto refresh bug
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Dec 6, 2024
1 parent e8abb4b commit e9164bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/web-console/src/scenes/Editor/Metrics/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const Metrics = () => {

const refreshRateInSec = refreshRate
? refreshRate === RefreshRate.AUTO
? refreshRatesInSeconds[autoRefreshRates[metricDuration]] * 1000
? refreshRatesInSeconds[autoRefreshRates[metricDuration]]
: refreshRatesInSeconds[refreshRate]
: 0

Expand Down
2 changes: 0 additions & 2 deletions packages/web-console/src/scenes/Editor/Metrics/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Grid } from "@styled-icons/remix-line"
import { utcToLocal } from "../../../utils/dateTime"
import uPlot from "uplot"
import { List } from "@styled-icons/fluentui-system-filled"

export enum MetricType {
COMMIT_RATE = "Commit rate",
Expand Down

0 comments on commit e9164bc

Please sign in to comment.