diff --git a/frontend/src/components/stats/HistoricalStats.tsx b/frontend/src/components/stats/HistoricalStats.tsx
index ab5fd8dd0..caff71fe6 100644
--- a/frontend/src/components/stats/HistoricalStats.tsx
+++ b/frontend/src/components/stats/HistoricalStats.tsx
@@ -32,7 +32,7 @@ const COLORS = {
const VIEWS = [
"basic",
- "i/o",
+ "i / o",
"temp"
];
@@ -113,9 +113,10 @@ const HistoricalStats: Component<{}> = (p) => {
-
+
-
+
+
@@ -226,7 +227,7 @@ const DiskChart: Component<{
);
};
-const NetworkChart: Component<{
+const NetworkIoCharts: Component<{
stats: Accessor;
}> = (p) => {
const recv_line = () => {
@@ -283,6 +284,62 @@ const NetworkChart: Component<{
);
};
+const DiskIoCharts: Component<{
+ stats: Accessor;
+}> = (p) => {
+ const read_line = () => {
+ return p.stats()?.map((s) => {
+ return {
+ time: convertTsMsToLocalUnixTsInSecs(s.ts),
+ value:
+ s.disk.disks?.length || 0 > 0
+ ? s.disk.read_kb /
+ get_to_one_sec_divisor(s.polling_rate)!
+ : 0,
+ };
+ });
+ };
+ const write_line = () => {
+ return p.stats()?.map((s) => {
+ return {
+ time: convertTsMsToLocalUnixTsInSecs(s.ts),
+ value:
+ s.disk.disks?.length || 0 > 0
+ ? s.disk.write_kb / get_to_one_sec_divisor(s.polling_rate)!
+ : 0,
+ };
+ });
+ };
+ return (
+
+
+
+ disk read kb/s
+
+ [
+ { title: "kb/s", color: "#184e9f", line: read_line()! },
+ ]}
+ />
+
+
+
+ disk write kb/s
+
+ [
+ { title: "kb/s", color: "#184e9f", line: write_line()! },
+ ]}
+ />
+
+
+ );
+};
+
const TempuratureChart: Component<{
stats: Accessor;
}> = (p) => {