This commit is contained in:
Your Name 2025-05-02 22:33:42 +12:00
parent 844ab60834
commit 2c40c10ea5

View File

@ -55,7 +55,7 @@ void list_servers() {
auto servers = get_configured_servers();
tableprint tp("All DropShell Servers");
tp.add_row({"Name", "Address", "Health", "Ports"});
tp.add_row({"Name", "User", "Address", "Health", "Ports"});
transwarp::parallel exec{servers.size()};
auto task = transwarp::for_each(exec, servers.begin(), servers.end(), [&](const ServerInfo& server) {
@ -71,7 +71,7 @@ void list_servers() {
for (const auto& port : ports_used)
ports_used_str += std::to_string(port) + " ";
tp.add_row({server.name, server.ssh_host, serviceticks, ports_used_str});
tp.add_row({server.name, server.ssh_user, server.ssh_host, serviceticks, ports_used_str});
});
task->wait();
tp.print();