From: Ian Jackson <ian.jack...@eu.citrix.com>

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.jack...@eu.citrix.com>
---
 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


Reply via email to