* usr/lib/byobu/include/shutil:

- 1 second should be long enough for finding metadata
This commit is contained in:
Dustin Kirkland 2013-07-09 08:37:46 -05:00
commit 4166c5e8d4
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -2,6 +2,8 @@ byobu (5.44) unreleased; urgency=low
* usr/lib/byobu/wifi_quality:
- minor fix for wifi quality printing, sometimes = and sometimes :
* usr/lib/byobu/include/shutil:
- 1 second should be long enough for finding metadata
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 02 Jun 2013 00:15:10 -0500

View file

@ -218,7 +218,7 @@ metadata_available() {
# Must seed the cache
if [ -e /etc/ec2_version ] || [ -e /usr/sbin/update-grub-legacy-ec2 ]; then
# This *looks* like a machine with metadata, so background a potentially slow check
wget -q -O "$cache" --timeout=10 --tries=1 http://169.254.169.254 2>/dev/null &
wget -q -O "$cache" --timeout=1 --tries=1 http://169.254.169.254 2>/dev/null &
sleep 0.02
[ -s "$cache" ] && x=1
fi