incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1363185 - /incubator/tashi/trunk/src/tashi/client/tashi-client.py
Date Thu, 19 Jul 2012 00:09:14 GMT
Author: stroucki
Date: Thu Jul 19 00:09:13 2012
New Revision: 1363185

URL: http://svn.apache.org/viewvc?rev=1363185&view=rev
Log:
tashi-client: improve syntax of getSlots message

Modified:
    incubator/tashi/trunk/src/tashi/client/tashi-client.py

Modified: incubator/tashi/trunk/src/tashi/client/tashi-client.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/client/tashi-client.py?rev=1363185&r1=1363184&r2=1363185&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/client/tashi-client.py (original)
+++ incubator/tashi/trunk/src/tashi/client/tashi-client.py Thu Jul 19 00:09:13 2012
@@ -201,11 +201,11 @@ def getSlots(cores, memory):
 		countbymemory = int((h.memory - h.usedMemory) / memory)
 		count += max(0, min(countbycores, countbymemory))
 
-	print "%d" % (count), "available slots for",
-	print ("instances", "instance")[count == 1],
-	print "with %d" % (cores),
+	print "%d" % (count), "available"
+	print ("slots", "slot")[count == 1],
+	print "for instances with %d" % (cores),
 	print ("cores", "core")[cores == 1],
-	print "and %d MB memory." % (memory)
+	print "and %d MB of memory." % (memory)
 	
 def createMany(instance, count):
 	# will create instances from 0 to count-1



Mime
View raw message