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

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


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Date: Tue, 25 Aug 2020 12:40:30 +0100
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Delivery-date: Tue, 25 Aug 2020 11:40:54 +0000
  • Ironport-sdr: 2RjV461DkSJwQDAAJMOlhPSc2qb1e9JxpnhDHi8Cm+slWLtPE8QMxQccG95aXn3WEw4REABaQF QJTnMXD76vUskGSTOZdoxMT5dUZvYQRAbO+yzv774S9ncKvwuNhjgD/mpfCfQWJe8G4ZxSRnDZ uNMBStyEXpPsdHabrQt1Q9f4WHziIP50HMllg0pTz6b7vkTTaE2mXu3xMqJ4ls5+k4b6rRmqmt 56w7uq3rR31e+2LzhFB7xf55vzTR6Mut0Py2NTtmr/K+e8YXW3CQHEGgkrJ8WgcuvjoWw+U44t h2g=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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®.