comparison OrthancFramework/Sources/MetricsRegistry.cpp @ 5791:7fadeb395359 default

fixed incremented metrics that were not published + added orthanc_storage_cache_miss_count & orthanc_storage_cache_hit_count
author Alain Mazy <am@orthanc.team>
date Wed, 18 Sep 2024 10:38:02 +0200
parents f7adfb22e20e
children
comparison
equal deleted inserted replaced
5767:b4fbd9d2c907 5791:7fadeb395359
137 } 137 }
138 } 138 }
139 139
140 void Increment(const T& delta) 140 void Increment(const T& delta)
141 { 141 {
142 time_ = GetNow();
143
142 if (hasValue_) 144 if (hasValue_)
143 { 145 {
144 value_ += delta; 146 value_ += delta;
145 } 147 }
146 else 148 else
147 { 149 {
148 value_ = delta; 150 value_ = delta;
151 hasValue_ = true;
149 } 152 }
150 } 153 }
151 154
152 bool HasValue() const 155 bool HasValue() const
153 { 156 {