Summary: | mirrorselect deep prefers non-existent hosts | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dieter Shirley <dete> |
Component: | [OLD] Unspecified | Assignee: | John Mylchreest (RETIRED) <johnm> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Dieter Shirley
2004-12-07 12:09:07 UTC
Im sure this is how you said it should be, as I'm sure I corrected this before I comitted. will revisit later and correct where neccessary. thanks. this is from 0.89 YCOUNT=0 for i in ${CHECKLIST} do YCOUNT=$((${YCOUNT}+1)) PERCENT=$(((${YCOUNT}*100)/${COUNT})) print_percent "${PERCENT}" "${i}" STIME=$(date +%s%N) wget -t 1 -C off -T ${TIMEOUT} -O /dev/null - ${i}/distfiles/mirrorselect-test 2>/dev/null RESULT=${?} ETIME=$(date +%s%N) [ ${RESULT} == 0 ] && $(echo "$((${ETIME}-${STIME})) ${RESULT} ${i}" >> ${TMPFILE}) done echo "Sorting by speed " >&2 MIRRORS="$(sort -g < ${TMPFILE} | cut -f3- -d" " | head -n ${SERVERS})" Could you please retest with this version and feed me back your results. Cheers. |