Permalink
Browse files

Fixed #175 (current spot price in spothistory)

  • Loading branch information...
1 parent 24ca7f8 commit d4df596d8d201db9f2066cdce32a038def389b42 @FinchPowers FinchPowers committed Nov 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 starcluster/awsutils.py
View
@@ -1172,7 +1172,7 @@ def get_spot_history(self, instance_type, start=None, end=None, zone=None,
data.append([timestamp, price])
maximum = max(prices)
avg = sum(prices) / float(len(prices))
- log.info("Current price: $%.2f" % prices[-1])
+ log.info("Current price: $%.2f" % prices[0])
log.info("Max price: $%.2f" % maximum)
log.info("Average price: $%.2f" % avg)
if plot:

0 comments on commit d4df596

Please sign in to comment.