diff --git a/src/pages/_widgets/router/router-bandwidth/get-router-bandwidth.ts b/src/pages/_widgets/router/router-bandwidth/get-router-bandwidth.ts index 2ef43cd78c64b5743dc26016d35e3c42137765a4..9fa2574e18825882f9ceae8ee6b424c1cdafea99 100644 --- a/src/pages/_widgets/router/router-bandwidth/get-router-bandwidth.ts +++ b/src/pages/_widgets/router/router-bandwidth/get-router-bandwidth.ts @@ -9,6 +9,6 @@ export class RouterBandwidth extends APIInterface< GetRouterBandwidthSearchParams > { protected getUrl(): string { - return `api/router/bandwidth`; + return `router/bandwidth`; } } diff --git a/src/pages/_widgets/router/router-bandwidth/router-bandwidth-chart.tsx b/src/pages/_widgets/router/router-bandwidth/router-bandwidth-chart.tsx index 9dfd2c62ee1211aa8d20122bfb2b5f371094bf50..7349ca97392c5d231e707273fad70d74597e744a 100644 --- a/src/pages/_widgets/router/router-bandwidth/router-bandwidth-chart.tsx +++ b/src/pages/_widgets/router/router-bandwidth/router-bandwidth-chart.tsx @@ -8,7 +8,11 @@ import { } from "@/components/ui/chart"; import { cn } from "@/lib/utils"; import { LineChart, Line, CartesianGrid, XAxis, YAxis } from "recharts"; -import { formatCount, formatUnixTimestamp } from "@/lib/format_unit"; +import { + formatCount, + formatISODate, + formatISODateWithDay, +} from "@/lib/format_unit"; import type { GetRouterBandwidthResponse } from "@model/router/bandwidth"; interface Props { @@ -33,21 +37,25 @@ export function RouterBandwidthChart(props: Props) { formatCount(tick, 0)} + tickFormatter={(v) => formatCount(v, 1)} /> } /> @@ -55,7 +63,7 @@ export function RouterBandwidthChart(props: Props) {