Skip to content

Commit

Permalink
delete buggy stddev function from MovingAverage
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Dec 29, 2024
1 parent c7599c4 commit 80dc388
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Release 6.0.25 (Not yet released)
-------------
* [Standalone] Changes Passenger (not app) start and stop timeouts to 25s (from 15s) except for Nginx engine mode, which retains a stop timeout of 60s.
* Fixes compilation with clang 19 (latest Fedora update) by dropping a buggy stddev function from the moving average header. Closes GH-2580.
*


Expand Down
6 changes: 0 additions & 6 deletions src/cxx_supportlib/Algorithms/MovingAverage.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,6 @@ class DiscExpMovingAverageWithStddev {
double stddev() const {
return sqrt(sumOfSquaredData / dema.sumOfWeights - pow(average(), 2));
}

double stddev(unsigned long long now) const {
DiscExpMovingAverageWithStddev<alpha, alphaTimeUnit, maxAge> copy(*this);
copy.update(0, now);
return sqrt(copy.sumOfSquaredData / copy.sumOfWeights - pow(copy.average(), 2));
}
};


Expand Down

0 comments on commit 80dc388

Please sign in to comment.