-
Connected
+
Connected
Disconnected
-
• Bitrate: {{ formatBitsPerSecond(findInterfaceStats(interface_name)?.bitrate ?? 0) }}
-
• TX: {{ formatBytes(findInterfaceStats(interface_name)?.txb ?? 0) }}
-
• RX: {{ formatBytes(findInterfaceStats(interface_name)?.rxb ?? 0) }}
+
• Bitrate: {{ formatBitsPerSecond(iface._stats?.bitrate ?? 0) }}
+
• TX: {{ formatBytes(iface._stats?.txb ?? 0) }}
+
• RX: {{ formatBytes(iface._stats?.rxb ?? 0) }}
@@ -2414,6 +2415,15 @@
return audioCall.is_outbound;
});
},
+ interfacesWithStats() {
+ const results = [];
+ for(const [interfaceName, iface] of Object.entries(this.interfaces)){
+ iface._name = interfaceName;
+ iface._stats = this.findInterfaceStats(interfaceName);
+ results.push(iface);
+ }
+ return results;
+ },
},
}).mount('#app');