hf has no bandwidth option, so the worker pauses hf (SIGSTOP/SIGCONT) whenever it is ahead of a token bucket over bytes on disk. The limit is shared by all running downloads and re-read every 5 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
588 B
TypeScript
17 lines
588 B
TypeScript
import type { Metadata } from "next";
|
|
import { getDownloadSpeedLimit, getRecommendedRoles } from "@/lib/settings";
|
|
import { RecommendedSettings } from "./recommended-settings";
|
|
import { SpeedLimit } from "./speed-limit";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
export const metadata: Metadata = { title: "Downloads · Settings" };
|
|
|
|
export default async function DownloadSettingsPage() {
|
|
return (
|
|
<div className="flex flex-col gap-4">
|
|
<SpeedLimit initial={await getDownloadSpeedLimit()} />
|
|
<RecommendedSettings initial={await getRecommendedRoles()} />
|
|
</div>
|
|
);
|
|
}
|