From 8109a2a43785a2999c08260808f1212da3fe7ac6 Mon Sep 17 00:00:00 2001 From: Chris Gerth Date: Sat, 7 Nov 2020 19:13:45 -0600 Subject: [PATCH] Add Disk Usage Percentage Stat (#154) Added disk usage percentage hardware stat Updated Settings-General UI to have table-layout for metrics and other info Added a `synchronized` modifier to the command runner due to some InterruptedThreadExceptions that were spuriously showing up while getting stats. Added additional stack trace logging when issues arise. --- .../src/views/SettingsViews/General.vue | 94 ++++++++++++++----- .../common/configuration/HardwareConfig.java | 4 + .../common/hardware/metrics/DiskMetrics.java | 25 +++++ .../common/hardware/metrics/MetricsBase.java | 18 +++- .../hardware/metrics/MetricsPublisher.java | 3 + 5 files changed, 120 insertions(+), 24 deletions(-) create mode 100644 photon-server/src/main/java/org/photonvision/common/hardware/metrics/DiskMetrics.java diff --git a/photon-client/src/views/SettingsViews/General.vue b/photon-client/src/views/SettingsViews/General.vue index 0c56ac658..46635d59b 100644 --- a/photon-client/src/views/SettingsViews/General.vue +++ b/photon-client/src/views/SettingsViews/General.vue @@ -1,21 +1,47 @@