From eafa1fad1b5923d1d3e731ab64e73c42cfc77182 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Fri, 16 Aug 2019 04:00:17 +0000
Subject: [PATCH] Don't display the system total logons if it's not populated.
 Support a 3-char "node num" (e.g. "Web").

---
 exec/logonlist.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/logonlist.js b/exec/logonlist.js
index ed86abc0c3..d41dcd5af3 100644
--- a/exec/logonlist.js
+++ b/exec/logonlist.js
@@ -73,10 +73,10 @@ function print(hdr, num, days_ago)
 		var record = list[i];
 		var date = new Date(record.time * 1000);
 		console.print(format(options.last_few_callers_fmt || 
-			"\r\n\x01n\x01h\x01m%-2s \x01n\x01m%-6u \x01w\x01h%-25.25s \x01m%-25.25s" +
+			"\r\n\x01n\x01h\x01m%-3s\x01n\x01m%-6s \x01w\x01h%-25.25s \x01m%-25.25s" +
 			"\x01n\x01m%02u:%02u \x01h%-8.8s \x01n\x01m%3d"
 			,record.node
-			,record.total
+			,record.total ? record.total : ""
 			,record.user.alias
 			,record.user.location
 			,date.getHours()
-- 
GitLab