From 536818e31d5df66072a3d0cb0383430523b65978 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Thu, 13 Dec 2018 16:08:25 +0000 Subject: Print board indices when doing a scan. --- telem.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'telem.lua') diff --git a/telem.lua b/telem.lua index 710bd20..261fe2f 100755 --- a/telem.lua +++ b/telem.lua @@ -365,7 +365,8 @@ function do_new() end function do_scan() - for _, board in ipairs(boards) do + for i, board in ipairs(boards) do + io.write(string.format("%3d ", i)) io.write("Scanning " .. colourise("cyan", stringx.ljust(board.name,20))) local threads = get_threads(board) local updated_threads = 0 -- cgit v1.2.3