* usr/lib/byobu/ec2_cost, usr/share/byobu/ec2/rates.eu_ie,

usr/share/byobu/ec2/rates.us_ca, usr/share/byobu/ec2/rates.us_va:
  - add ec2_cost support for t1.micro instances
This commit is contained in:
Dustin Kirkland 2010-10-31 14:20:09 -04:00
commit b628c1c565
5 changed files with 9 additions and 5 deletions

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (3.7) unreleased; urgency=low
* UNRELEASED
* usr/lib/byobu/ec2_cost, usr/share/byobu/ec2/rates.eu_ie,
usr/share/byobu/ec2/rates.us_ca, usr/share/byobu/ec2/rates.us_va:
- add ec2_cost support for t1.micro instances
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 21 Oct 2010 12:09:14 -0500

View file

@ -39,7 +39,9 @@ cpu=$(grep -c "^processor.*:" /proc/cpuinfo) || cpu=1
mem=$(grep ^MemTotal /proc/meminfo | awk '{print $2}')
# Guess this system's going rate, based on mem available (m* types)
if [ $mem -gt 64000000 ]; then
if [ $mem -lt 700000 ]; then
RATE=$T1_MICRO
elif [ $mem -gt 64000000 ]; then
RATE=$M2_4XLARGE
elif [ $mem -gt 32000000 ]; then
RATE=$M2_2XLARGE

View file

@ -10,4 +10,4 @@ M2_2XLARGE="1.34"
M2_4XLARGE="2.68"
C1_MEDIUM="0.19"
C1_XLARGE="0.76"
T1_MICRO="0.025"

View file

@ -10,4 +10,4 @@ M2_2XLARGE="1.34"
M2_4XLARGE="2.68"
C1_MEDIUM="0.19"
C1_XLARGE="0.76"
T1_MICRO="0.025"

View file

@ -10,4 +10,4 @@ M2_2XLARGE="1.20"
M2_4XLARGE="2.40"
C1_MEDIUM="0.17"
C1_XLARGE="0.68"
T1_MICRO="0.02"