mirror of
https://github.com/henrygd/beszel.git
synced 2026-05-06 19:01:48 +02:00
updates
This commit is contained in:
@@ -248,7 +248,7 @@ export function useNetworkProbesData(props: UseNetworkProbesProps) {
|
||||
// const stats: NetworkProbeStatsRecord["stats"] = {}
|
||||
// for (const probe of probes) {
|
||||
// // TODO: include only if probe.updated < charttime
|
||||
// stats[probe.id] = [probe.res, probe.resAvg1h, probe.resMin1h, probe.resMax1h, probe.loss1h]
|
||||
// stats[probe.id] = [probe.res, probe.resAvg1h, probe.resMin1h, probe.resMax1h, probe.loss, probe.loss1h]
|
||||
// }
|
||||
// return stats
|
||||
// }
|
||||
|
||||
5
internal/site/src/types.d.ts
vendored
5
internal/site/src/types.d.ts
vendored
@@ -556,6 +556,7 @@ export interface NetworkProbeRecord {
|
||||
resMin1h: number
|
||||
resMax1h: number
|
||||
resAvg1h: number
|
||||
loss: number
|
||||
loss1h: number
|
||||
interval: number
|
||||
enabled: boolean
|
||||
@@ -571,7 +572,9 @@ export interface NetworkProbeRecord {
|
||||
*
|
||||
* 3: max response over the last hour in microseconds
|
||||
*
|
||||
* 4: packet loss over 1 hour in %
|
||||
* 4: packet loss %
|
||||
*
|
||||
* 5: packet loss over the last hour in %
|
||||
*/
|
||||
type ProbeResult = number[]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user