mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Fix various clang-tidy warnings
This commit is contained in:
committed by
Dennis Klein
parent
a65f0e6777
commit
499ffcd300
@@ -48,7 +48,9 @@ public:
|
||||
* to 0 set the rate to 1 GHz (which is impossible to achieve, even with a
|
||||
* loop that only calls RateLimiter::maybe_sleep).
|
||||
*/
|
||||
RateLimiter(float rate) : tw_req(std::chrono::seconds(1)), start_time(clock::now())
|
||||
explicit RateLimiter(float rate)
|
||||
: tw_req(std::chrono::seconds(1))
|
||||
, start_time(clock::now())
|
||||
{
|
||||
if (rate <= 0) {
|
||||
tw_req = std::chrono::nanoseconds(1);
|
||||
@@ -133,4 +135,4 @@ private:
|
||||
} /* namespace mq */
|
||||
} /* namespace fair */
|
||||
|
||||
#endif // FAIR_MQ_TOOLS_RATELIMIT_H
|
||||
#endif // FAIR_MQ_TOOLS_RATELIMIT_H
|
||||
|
Reference in New Issue
Block a user