aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-13 16:08:25 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-13 16:08:25 +0000
commit536818e31d5df66072a3d0cb0383430523b65978 (patch)
tree90a394fc52860e71be2e47497c415b3bb0f34a6c
parentDelete tmp files which are no longer needed. (diff)
Print board indices when doing a scan.
-rwxr-xr-xtelem.lua3
1 files changed, 2 insertions, 1 deletions
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