[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OSSTEST PATCH 01/82] ms-queuedaemon: Update for newer Tcl's socket channel ids



From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

Now we have things like "sock55599edaf050" where previously we had
something like "sock142".  So the output is misaligned.

Bump the sizes.  And with these longer names, when showing the front
of the queue only print the full first entry and the start of the next
one.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 ms-queuedaemon | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/ms-queuedaemon b/ms-queuedaemon
index a3a009ca..dc858863 100755
--- a/ms-queuedaemon
+++ b/ms-queuedaemon
@@ -91,7 +91,7 @@ proc log-event {m} {
 proc log-state {m} {
     global need_queue_run queue
 
-    set lhs [format "N=%d Q=%d (%-15.15s) " \
+    set lhs [format "N=%d Q=%d (%-20.20s) " \
                  $need_queue_run [llength $queue] $queue]
 
     foreach-walker w {
@@ -99,13 +99,13 @@ proc log-state {m} {
        if {[info exists queue_running]} {
            append lhs [format "R=%-3d " [llength $queue_running]]
            if {[info exists thinking]} {
-               append lhs [format "T=%-7s " $thinking]
+               append lhs [format "T=%-16s " $thinking]
            } else {
-               append lhs [format "          "]
+               append lhs [format "                   "]
            }
-           append lhs [format "(%-15.15s) " $queue_running]
+           append lhs [format "(%-20.20s) " $queue_running]
        } else {
-           append lhs "                                  "
+           append lhs "                                                "
        }
     }
 
-- 
2.20.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.