sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 301ee38eb8568e1c5a1e3b5f0cb543ca04d9c776
parent 4d3aaa286ebdbec7276e3d87e1c8a16bcf5204ec
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue,  8 Apr 2014 14:35:02 +0200

sfeed_update: small time format, timeout from 30 to 15 seconds

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Msfeed_update | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sfeed_update b/sfeed_update @@ -44,10 +44,10 @@ merge() { # fetch a feed via HTTP/HTTPS etc. # fetchfeed(url, name, lastupdated) fetchfeed() { - if curl -f -s -S -L --max-time 30 -z "$3" "$1"; then - printf "[ OK] %s %s\n" "[`date '+%Y-%m-%d %H:%M:%S %Z'`]" "$2" >&2 + if curl -f -s -S -L --max-time 15 -z "$3" "$1"; then + printf " OK %s %s\n" "`date +'%H:%M:%S'`" "$2" >&2 else - printf "[FAIL] %s %s\n" "[`date '+%Y-%m-%d %H:%M:%S %Z'`]" "$2" >&2 + printf "FAIL %s %s\n" "`date +'%H:%M:%S'`" "$2" >&2 fi }