summaryrefslogtreecommitdiff
path: root/sfeed_update
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2014-04-08 14:35:02 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-04-08 14:35:02 +0200
commit301ee38eb8568e1c5a1e3b5f0cb543ca04d9c776 (patch)
treebe3566fb1d9d8b521bc1c97e6419740c190f9b33 /sfeed_update
parent4d3aaa286ebdbec7276e3d87e1c8a16bcf5204ec (diff)
sfeed_update: small time format, timeout from 30 to 15 seconds
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat (limited to 'sfeed_update')
-rwxr-xr-xsfeed_update6
1 files 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
}