From 301ee38eb8568e1c5a1e3b5f0cb543ca04d9c776 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 8 Apr 2014 14:35:02 +0200 Subject: sfeed_update: small time format, timeout from 30 to 15 seconds Signed-off-by: Hiltjo Posthuma --- sfeed_update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sfeed_update b/sfeed_update index 574df5c..29968dd 100755 --- 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 } -- cgit v1.2.3