From 8ab99a7e24dbe6419f3c5c9a0207d5273e24d417 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Fri, 13 Dec 2002 23:33:04 +0000
Subject: [PATCH] Only used one digit of output labels for ten tasks (zero
 origin).

---
 src/srun/io.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/srun/io.c b/src/srun/io.c
index 7cc2f4f1ef1..7463c8fa605 100644
--- a/src/srun/io.c
+++ b/src/srun/io.c
@@ -440,6 +440,7 @@ static int
 _wid(int n)
 {
 	int width = 1;
+	n--;	/* For zero origin */
 	while (n /= 10)
 		width++;
 	return width;
-- 
GitLab