diff options
| author | Joe Kirchoff <[email protected]> | 2022-03-22 11:47:38 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-22 11:47:38 -0700 |
| commit | cc5adf4cb79c92993fabfe09e75dfadb7d4c9665 (patch) | |
| tree | 4ba0a18f68e39685fa784d872bbb4bb9ba2b6fd7 /zenserver/upstream/upstreamapply.h | |
| parent | move workthreadpool to zencore (#63) (diff) | |
| download | zen-cc5adf4cb79c92993fabfe09e75dfadb7d4c9665.tar.xz zen-cc5adf4cb79c92993fabfe09e75dfadb7d4c9665.zip | |
Enable Horde compute code on Linux & Mac (#61)
Diffstat (limited to 'zenserver/upstream/upstreamapply.h')
| -rw-r--r-- | zenserver/upstream/upstreamapply.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/zenserver/upstream/upstreamapply.h b/zenserver/upstream/upstreamapply.h index 44c08e30e..63fd771da 100644 --- a/zenserver/upstream/upstreamapply.h +++ b/zenserver/upstream/upstreamapply.h @@ -2,13 +2,12 @@ #pragma once -#include "compute/apply.h" - #if ZEN_WITH_COMPUTE_SERVICES # include <zencore/compactbinarypackage.h> # include <zencore/iobuffer.h> # include <zencore/iohash.h> +# include <zencore/stats.h> # include <zencore/zencore.h> # include <atomic> @@ -106,14 +105,12 @@ struct UpstreamEndpointHealth struct UpstreamApplyEndpointStats { - std::atomic_uint64_t PostCount{}; - std::atomic_uint64_t CompleteCount{}; - std::atomic_uint64_t UpdateCount{}; - std::atomic_uint64_t ErrorCount{}; - std::atomic<double> UpBytes{}; - std::atomic<double> DownBytes{}; - std::atomic<double> SecondsUp{}; - std::atomic<double> SecondsDown{}; + metrics::Counter PostCount; + metrics::Counter CompleteCount; + metrics::Counter UpdateCount; + metrics::Counter ErrorCount; + metrics::Counter UpBytes; + metrics::Counter DownBytes; }; /** |