mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
Some automations like notification of download completion rely on
polling of torrent list. Plus, in the future, we might add more
automation capabilities such as "Pause after reaching certain ratio".
As such, don't completely stop polling when idle. Instead, add a config
"torrentClientPollIntervalIdle" to adjust the interval. The default is
(1000 * 60 * 15) ms aka 15 minutes that should allow low resources
consumption and ensure the automations like logging of download completion
time can work within reasonable error margin.
Fixes: 8452d51b79
Bug: #45, Flood-UI/flood#405
27 lines
650 B
TypeScript
27 lines
650 B
TypeScript
import type {ClientConnectionSettings} from '@shared/schema/ClientConnectionSettings';
|
|
|
|
declare const CONFIG: {
|
|
baseURI: string;
|
|
dbCleanInterval: number;
|
|
dbPath: string;
|
|
tempPath: string;
|
|
disableUsersAndAuth: boolean;
|
|
configUser: ClientConnectionSettings;
|
|
floodServerHost: string;
|
|
floodServerPort: number;
|
|
floodServerProxy: string;
|
|
maxHistoryStates: number;
|
|
torrentClientPollInterval: number;
|
|
torrentClientPollIntervalIdle: number;
|
|
secret: string;
|
|
ssl: boolean;
|
|
sslKey: string;
|
|
sslCert: string;
|
|
diskUsageService: {
|
|
watchMountPoints: Array<string>;
|
|
};
|
|
allowedPaths: Array<string> | null;
|
|
};
|
|
|
|
export = CONFIG;
|