Author: justi9
Date: 2008-04-17 13:07:13 -0400 (Thu, 17 Apr 2008)
New Revision: 1928
Modified:
mgmt/cumin/python/cumin/exchange.py
mgmt/cumin/python/cumin/queue.py
mgmt/cumin/python/cumin/stat.py
Log:
Append "/ sec" to rate chart legend elements.
Adjust titles.
Modified: mgmt/cumin/python/cumin/exchange.py
===================================================================
--- mgmt/cumin/python/cumin/exchange.py 2008-04-17 16:50:49 UTC (rev 1927)
+++ mgmt/cumin/python/cumin/exchange.py 2008-04-17 17:07:13 UTC (rev 1928)
@@ -384,7 +384,7 @@
self.mode = "rate"
def render_title(self, session, exchange):
- return "Received, Routed, and Dropped Messages per Second"
+ return "Messages Received, Routed, and Dropped"
class ExchangeProducerSet(ItemSet):
def get_args(self, session):
Modified: mgmt/cumin/python/cumin/queue.py
===================================================================
--- mgmt/cumin/python/cumin/queue.py 2008-04-17 16:50:49 UTC (rev 1927)
+++ mgmt/cumin/python/cumin/queue.py 2008-04-17 17:07:13 UTC (rev 1928)
@@ -464,7 +464,7 @@
self.mode = "rate"
def render_title(self, session, queue):
- return "Enqueues and Dequeues per Second"
+ return "Messages Enqueued and Dequeued"
class DepthChart(StatValueChart):
def __init__(self, app, name):
@@ -496,7 +496,7 @@
self.mode = "rate"
def render_title(self, session, queue):
- return "Enqueues and Dequeues per Second"
+ return "Durable Messages Enqueued and Dequeued"
class QueueStatsTransactions(Widget):
def __init__(self, app, name):
Modified: mgmt/cumin/python/cumin/stat.py
===================================================================
--- mgmt/cumin/python/cumin/stat.py 2008-04-17 16:50:49 UTC (rev 1927)
+++ mgmt/cumin/python/cumin/stat.py 2008-04-17 17:07:13 UTC (rev 1928)
@@ -248,7 +248,11 @@
chart.plot_frame()
- titles = [x.title for x in stats]
+ if self.mode.get(session) == "rate":
+ titles = ["%s / sec" % x.title for x in stats]
+ else:
+ titles = [x.title for x in stats]
+
chart.plot_legend(titles, colors)
writer = Writer()
Show replies by date