diff --git a/debian/changelog b/debian/changelog index 1e0d0363..0e2bd432 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sun, 02 Jun 2013 00:15:10 -0500 diff --git a/usr/lib/byobu/include/shutil b/usr/lib/byobu/include/shutil index 7dbb917e..dc6c2398 100755 --- a/usr/lib/byobu/include/shutil +++ b/usr/lib/byobu/include/shutil @@ -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