summaryrefslogtreecommitdiff
path: root/python/commands/qpid-queue-stats
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-06-02 16:01:51 +0000
committerTed Ross <tross@apache.org>2008-06-02 16:01:51 +0000
commit40c8b6f844ce64fc4245e5f91e6b1eaea2fc9e94 (patch)
tree80438fbfb8739e9189fdad70d8271ae2ca8d26f4 /python/commands/qpid-queue-stats
parente1c0b830b67e68be71e65ef18657e746ed6b971f (diff)
downloadqpid-python-40c8b6f844ce64fc4245e5f91e6b1eaea2fc9e94.tar.gz
QPID-1113 Management cleanup and performance enhancements
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662470 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/commands/qpid-queue-stats')
-rwxr-xr-xpython/commands/qpid-queue-stats8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/commands/qpid-queue-stats b/python/commands/qpid-queue-stats
index 437714fec4..98dfa7580a 100755
--- a/python/commands/qpid-queue-stats
+++ b/python/commands/qpid-queue-stats
@@ -126,14 +126,14 @@ class BrokerManager:
deltaTime = float (obj.timestamps[0] - lastSample.timestamps[0])
enqueueRate = float (obj.msgTotalEnqueues - lastSample.msgTotalEnqueues) / (deltaTime / 1000000000.0)
dequeueRate = float (obj.msgTotalDequeues - lastSample.msgTotalDequeues) / (deltaTime / 1000000000.0)
- print "%-41s%10.2f%10d..%-10d%13.2f%13.2f" % \
- (name, deltaTime / 1000000000, obj.msgDepthLow, obj.msgDepthHigh, enqueueRate, dequeueRate)
+ print "%-41s%10.2f%11d%13.2f%13.2f" % \
+ (name, deltaTime / 1000000000, obj.msgDepth, enqueueRate, dequeueRate)
def Display (self):
self.ConnectToBroker ()
- print "Queue Name Sec Depth Range Enq Rate Deq Rate"
- print "==================================================================================================="
+ print "Queue Name Sec Depth Enq Rate Deq Rate"
+ print "========================================================================================"
try:
while True:
sleep (1)