diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-10 11:59:25 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-10 11:59:25 +0200 |
commit | 1b4be457c9a8cc08951e2d3fd080ea63863a9280 (patch) | |
tree | 48f2bb459fe44ee2bd669f95bbfde187318d9e46 /odin/strm | |
parent | 750e14f563c82023dffdd41a0a37d23b9a9ab5e6 (diff) | |
download | nixos-1b4be457c9a8cc08951e2d3fd080ea63863a9280.tar nixos-1b4be457c9a8cc08951e2d3fd080ea63863a9280.tar.gz nixos-1b4be457c9a8cc08951e2d3fd080ea63863a9280.tar.bz2 nixos-1b4be457c9a8cc08951e2d3fd080ea63863a9280.tar.xz nixos-1b4be457c9a8cc08951e2d3fd080ea63863a9280.zip |
Make delta & interval configurable
Diffstat (limited to 'odin/strm')
-rw-r--r-- | odin/strm/rss_staggered | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/odin/strm/rss_staggered b/odin/strm/rss_staggered index 30abb939..2f3bb997 100644 --- a/odin/strm/rss_staggered +++ b/odin/strm/rss_staggered | |||
@@ -1,7 +1,10 @@ | |||
1 | #!@zsh@/bin/zsh | 1 | #!@zsh@/bin/zsh |
2 | 2 | ||
3 | delta_t=20 | 3 | typeset -A opts |
4 | interval=3600 | 4 | zparseopts -A opts -M -- -delta: d:=-delta -interval: i:=-interval |
5 | |||
6 | delta_t=${opts[--delta]:-20} | ||
7 | interval=${opts[--interval]:-3600} | ||
5 | 8 | ||
6 | staggerFile=~/.rss-stagger | 9 | staggerFile=~/.rss-stagger |
7 | 10 | ||