Skip to content

Commit

Permalink
Use consistent arguments for std::max
Browse files Browse the repository at this point in the history
  • Loading branch information
toregge committed Aug 20, 2024
1 parent a7d86e0 commit 381fe48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vespalib/src/vespa/vespalib/util/process_memory_stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ namespace {
bool
similar(uint64_t lhs, uint64_t rhs, double epsilon)
{
uint64_t maxDiff = std::max(1_Mi, uint64_t(epsilon * (lhs+rhs)/2.0));
uint64_t maxDiff = std::max(uint64_t(1_Mi), uint64_t(epsilon * (lhs+rhs)/2.0));
return (lhs < rhs) ? ((rhs - lhs) <= maxDiff) : ((lhs - rhs) <= maxDiff);
}

Expand Down

0 comments on commit 381fe48

Please sign in to comment.