forked from p15670423/monkey
Added "," after each IP address while rendering a machine
This commit is contained in:
parent
b7f678de04
commit
930ff08149
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue