Added "," after each IP address while rendering a machine

This commit is contained in:
VakarisZ 2019-07-15 10:54:13 +03:00
parent b7f678de04
commit 930ff08149
1 changed files with 3 additions and 3 deletions

View File

@ -12,12 +12,12 @@ export function renderMachineFromSystemData(data) {
let machineStr = data['hostname'] + " ( "; let machineStr = data['hostname'] + " ( ";
data['ips'].forEach(function(ipInfo){ data['ips'].forEach(function(ipInfo){
if(typeof ipInfo === "object"){ if(typeof ipInfo === "object"){
machineStr += ipInfo['addr'] + " "; machineStr += ipInfo['addr'] + ", ";
} else { } else {
machineStr += ipInfo + " "; machineStr += ipInfo + ", ";
} }
}); });
return machineStr + ")" return machineStr.slice(0, -2) + " )"
} }
/* Formats telemetry data that contains _id.machine and _id.usage fields into columns /* Formats telemetry data that contains _id.machine and _id.usage fields into columns