mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 08:03:13 +09:00
Check transfer speed over 60 seconds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
19569aefa4
commit
42bc31e406
3 files changed
+4
-4
No files matched your search
@@ -857,7 +857,7 @@ async function uploadMod(req: Request, res: Response) {
|
||||
}
|
||||
|
||||
|
||||
export function addRouteHandlers(app: Application, progressCheckIntervalMs = 30_000) {
|
||||
export function addRouteHandlers(app: Application, progressCheckIntervalMs = 60_000) {
|
||||
app.use(guardRequest(progressCheckIntervalMs));
|
||||
app.get("/metrics",
|
||||
validateUserToken,
|
||||
|
||||
@@ -234,7 +234,7 @@ export class ControllerConfig extends classes.Config<ControllerConfigFields> {
|
||||
},
|
||||
"controller.transfer_min_speed": {
|
||||
title: "Transfer Minimum Speed",
|
||||
description: "KiB/s an upload or download has to move at over 30 seconds to not be closed, 0 for no limit.",
|
||||
description: "KiB/s an upload or download has to move at over 60 seconds to not be closed, 0 for no limit.",
|
||||
type: "number",
|
||||
initialValue: 64,
|
||||
validator: validators.greaterThanEqualZero,
|
||||
|
||||
Reference in new issue
Block a user