projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ed1a902
)
Fix: using tmp on extraction of session id and client count
author
Dennis Schafroth
<dennis@indexdata.com>
Thu, 28 Oct 2010 09:15:13 +0000
(11:15 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Thu, 28 Oct 2010 09:15:13 +0000
(11:15 +0200)
perf/bash/client_timed.sh
patch
|
blob
|
history
diff --git
a/perf/bash/client_timed.sh
b/perf/bash/client_timed.sh
index
90d636f
..
dd4349c
100755
(executable)
--- a/
perf/bash/client_timed.sh
+++ b/
perf/bash/client_timed.sh
@@
-21,7
+21,7
@@
H="http://localhost:${PORT}/search.pz2"
declare -i MAX_WAIT=2
/usr/bin/time --format "$OF, init, %e" wget -q -O ${TMP_DIR}$OF.init.xml "$H/?command=init&service=${SERVICE}&extra=$OF" 2> ${TMP_DIR}$OF.init.time
declare -i MAX_WAIT=2
/usr/bin/time --format "$OF, init, %e" wget -q -O ${TMP_DIR}$OF.init.xml "$H/?command=init&service=${SERVICE}&extra=$OF" 2> ${TMP_DIR}$OF.init.time
-S=`xsltproc get_session.xsl $OF.init.xml`
+S=`xsltproc get_session.xsl ${TMP_DIR}$OF.init.xml`
/usr/bin/time --format "$OF, search, %e" wget -q -O ${TMP_DIR}$OF.search.xml "$H?command=search&query=${QUERY}&session=$S" 2> ${TMP_DIR}$OF.search.time
let r=0
/usr/bin/time --format "$OF, search, %e" wget -q -O ${TMP_DIR}$OF.search.xml "$H?command=search&query=${QUERY}&session=$S" 2> ${TMP_DIR}$OF.search.time
let r=0
@@
-31,7
+31,7
@@
while [ ${DO_DISPLAY} ] ; do
echo "show in $SLEEP"
sleep $SLEEP
/usr/bin/time --format "$OF, show2, %e" wget -q -O ${TMP_DIR}$OF.show.$r.xml "$H?command=show&session=$S&start=$r&num=${NUM}&block=1" 2>> ${TMP_DIR}$OF.show.time
echo "show in $SLEEP"
sleep $SLEEP
/usr/bin/time --format "$OF, show2, %e" wget -q -O ${TMP_DIR}$OF.show.$r.xml "$H?command=show&session=$S&start=$r&num=${NUM}&block=1" 2>> ${TMP_DIR}$OF.show.time
- AC=`xsltproc get_activeclients.xsl ${OF}.show.$r.xml`
+ AC=`xsltproc get_activeclients.xsl ${TMP_DIR}${OF}.show.$r.xml`
if [ "$AC" != "0" ] ; then
echo "Active clients: ${AC}"
# else
if [ "$AC" != "0" ] ; then
echo "Active clients: ${AC}"
# else