Software /
code /
prosody
Comparison
prosodyctl @ 7249:c49f69bb68f7
prosodyctl: Include libevent version in "about" output if luaevent is available
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 07 Mar 2016 12:13:22 +0100 |
parent | 7213:193e4c65d218 |
child | 7250:6ffc9247417a |
comparison
equal
deleted
inserted
replaced
7244:8c6943918279 | 7249:c49f69bb68f7 |
---|---|
587 if #name > longest_name then | 587 if #name > longest_name then |
588 longest_name = #name; | 588 longest_name = #name; |
589 end | 589 end |
590 module_versions[name] = module._VERSION; | 590 module_versions[name] = module._VERSION; |
591 end | 591 end |
592 end | |
593 if luaevent then | |
594 module_versions["libevent"] = luaevent.core.libevent_version(); | |
592 end | 595 end |
593 local sorted_keys = array.collect(keys(module_versions)):sort(); | 596 local sorted_keys = array.collect(keys(module_versions)):sort(); |
594 for _, name in ipairs(array.collect(keys(module_versions)):sort()) do | 597 for _, name in ipairs(array.collect(keys(module_versions)):sort()) do |
595 print(name..":"..string.rep(" ", longest_name-#name), module_versions[name]); | 598 print(name..":"..string.rep(" ", longest_name-#name), module_versions[name]); |
596 end | 599 end |