From 24b5be474d9b7c16220712d6a1d4280245858e35 Mon Sep 17 00:00:00 2001 From: Teppo Kurki Date: Tue, 29 Aug 2023 21:44:19 +0300 Subject: [PATCH] feature: add write statistics to dashboard Add new icon to indicate outbound traffic on Connections. Change the previous feed icon to login to indicate incoming traffic so that we can use the 'logout' icon for outbound traffic. --- .../src/views/Dashboard/Dashboard.js | 25 ++++++- packages/streams/serialport.js | 5 ++ packages/streams/simple.js | 10 +++ packages/streams/tcp.js | 5 ++ src/app.ts | 6 +- src/deltastats.ts | 74 ++++++++++++++++--- src/index.ts | 5 +- 7 files changed, 111 insertions(+), 19 deletions(-) diff --git a/packages/server-admin-ui/src/views/Dashboard/Dashboard.js b/packages/server-admin-ui/src/views/Dashboard/Dashboard.js index 50c674be7..c75a4eb39 100644 --- a/packages/server-admin-ui/src/views/Dashboard/Dashboard.js +++ b/packages/server-admin-ui/src/views/Dashboard/Dashboard.js @@ -74,18 +74,26 @@ const Dashboard = (props) => {
- Connection activity (deltas/second) + Connection activity (input: deltas/second - output: + messages/second)