mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
move wget options in a variable
This commit is contained in:
parent
4be444c518
commit
99e037bd1d
@ -74,6 +74,8 @@ ticket_id=${ticket_id:-"1"}
|
||||
time=$(which time)
|
||||
wget=$(which wget)
|
||||
|
||||
wget_opts="--page-requisites --no-cache --no-check-certificate --delete-after --quiet"
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
if [ "x$time" = "x" -o "x$wget" = "x" ]; then
|
||||
echo "no (need time and wget programs)"
|
||||
@ -107,8 +109,8 @@ url_webui="${web_url}Ticket/Display.html?id=${ticket_id}&user=${username}&pass=$
|
||||
url_rest="${web_url}REST/1.0/ticket/${ticket_id}/history?format=l&user=${username}&pass=${password}"
|
||||
|
||||
cd $tmpdir || exit1
|
||||
loadtime_webui=$($time --portability $wget --page-requisites --no-cache --no-check-certificate --delete-after --quiet $url_webui 2>&1 | awk '/^real / {print $2}')
|
||||
loadtime_rest=$($time --portability $wget --page-requisites --no-cache --no-check-certificate --delete-after --quiet $url_rest 2>&1 | awk '/^real / {print $2}')
|
||||
loadtime_webui=$($time --portability $wget $wget_opts $url_webui 2>&1 | awk '/^real / {print $2}')
|
||||
loadtime_rest=$($time --portability $wget $wget_opts $url_rest 2>&1 | awk '/^real / {print $2}')
|
||||
cd ..
|
||||
|
||||
echo "webui.value $loadtime_webui"
|
||||
|
Loading…
Reference in New Issue
Block a user