Quantcast
Channel: Syncthing Community Forum - Latest topics
Viewing all articles
Browse latest Browse all 6197

Syncthing scheduler idea

$
0
0

A scheduler for changing the rate limit at certain times is currently in the making (see issue #6130) I want to share my idea for an improvement

Do we even need the minute granularity?

0 … rate limit is off
1 … rate limit is on

so a business week 9-17 would look like this in config.xml

000000000111111111000000
000000000111111111000000
000000000111111111000000
000000000111111111000000
000000000111111111000000
000000000000000000000000
000000000000000000000000

The scheduler reads this config and simply keeps all days+hours that have a scheduled “1” in the memory. The “0” are not needed

Examples
Monday, 11:46 -> there is a “1” for hour “11” in the config -> rate limit on
Saturday, 20:53 -> there is nothing in the memory config -> rate limit off

GUI have 1 checkbox for each day/hour plus some conditional css if the checkbox is clicked e.g. has green background.

working mockup - yes, I work Saturdays :smile:
syncsched

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6197

Trending Articles