.
This commit is contained in:
parent
844ab60834
commit
2c40c10ea5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user