mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-11 05:46:23 +00:00
- add one minute charts - update disk io to use bytes - update hub and agent connection interfaces / handlers to be more flexible - change agent cache to use cache time instead of session id - refactor collection of metrics which require deltas to track separately per cache time
12 lines
237 B
Go
12 lines
237 B
Go
//go:build testing
|
|
// +build testing
|
|
|
|
package ws
|
|
|
|
// GetPendingCount returns the number of pending requests (for monitoring)
|
|
func (rm *RequestManager) GetPendingCount() int {
|
|
rm.RLock()
|
|
defer rm.RUnlock()
|
|
return len(rm.pendingReqs)
|
|
}
|