Implement metric interval control

This commit is contained in:
2023-11-30 13:21:10 +01:00
parent fc66f568ea
commit 60af808ea0
5 changed files with 44 additions and 15 deletions

View File

@@ -56,6 +56,12 @@ const clientOptions = [
type: Boolean,
description: "Display TX and RX bars. Can be used with logs (although it will make a mess)."
},
{
name: "metricsinterval",
type: Number,
defaultOption: 5,
description: "Sets the interval for measuring metrics. A value of 5 considers the packets within the last 5 seconds. Defaults to 5."
},
];
const centerOptions = [
@@ -127,6 +133,12 @@ const centerOptions = [
type: Boolean,
description: "Display TX and RX bars. Can be used with logs (although it will make a mess)."
},
{
name: "metricsinterval",
type: Number,
defaultOption: 5,
description: "Sets the interval for measuring metrics. A value of 5 considers the packets within the last 5 seconds. Defaults to 5."
},
];
module.exports = { clientOptions, centerOptions };