mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-04-01 08:55:27 +00:00
implement uptime stats
This commit is contained in:
parent
6be42e596a
commit
29895bf35a
3 changed files with 34 additions and 5 deletions
|
|
@ -18,11 +18,12 @@ impl Total {
|
|||
..Self::default()
|
||||
}
|
||||
}
|
||||
pub fn snap(&self) -> Snap {
|
||||
pub fn snap(&self, seconds_from_startup: u64) -> Snap {
|
||||
Snap::shot(
|
||||
self.entries.load(Ordering::Relaxed),
|
||||
self.request.load(Ordering::Relaxed),
|
||||
self.blocked.load(Ordering::Relaxed),
|
||||
seconds_from_startup,
|
||||
)
|
||||
}
|
||||
pub fn set_entries(&self, value: u64) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue