Author: croberts
Date: 2012-04-11 18:09:44 +0000 (Wed, 11 Apr 2012)
New Revision: 5294
Modified:
branches/play_plumage/mint/python/mint/plumage/session.py
Log:
Fixing-up the dummy data for cumin-report to match the upated plumage schema.
Modified: branches/play_plumage/mint/python/mint/plumage/session.py
===================================================================
--- branches/play_plumage/mint/python/mint/plumage/session.py 2012-04-11 18:07:49 UTC (rev
5293)
+++ branches/play_plumage/mint/python/mint/plumage/session.py 2012-04-11 18:09:44 UTC (rev
5294)
@@ -94,11 +94,32 @@
# some number of available used
os.used = randrange(0, os.avail+1)
+
+ machines = ["croberts.redhat.com", "tmckay.redhat.com",
"shadowman.redhat.com"]
+ os.machine = machines[randrange(0,3)]
+ os.slot = "%d@%s" % (randrange(1, 16), os.machine)
+
+ architectures = ["X86_64", "X86", "Itanium"]
+ os.architecture = architectures[randrange(0,3)]
+
+ oses = ["LINUX", "WINDOWS", "MAC"]
+ os.os = oses[randrange(0,3)]
+
+ os.kbidle = randrange(0, 100)
+
+ os.lastactive = randrange(0, 100)
+
+ states = ["Claimed", "Available",
"Unavailable"]
+ os.state = states[randrange(0,3)]
+
+ os.cpu = randrange(0,65)
+
+ os.mem = randrange(0, 100000)
obj = ObjectUpdate(self.app.model, os, self.cls)
self.app.update_thread.enqueue(obj)
- sleep(1)
+ sleep(30)
# five machines
uuid = (uuid + 1) % 6
Show replies by date