mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
* Refactor periodic loggers * Limit network batch size also by packet count Previously it was limited only by size, and exceeding 64 packets in a single batch is asking for problems.
20 lines
374 B
C++
20 lines
374 B
C++
/**
|
|
* @file src/stat_trackers.cpp
|
|
* @brief Definitions for streaming statistic tracking.
|
|
*/
|
|
#include "stat_trackers.h"
|
|
|
|
namespace stat_trackers {
|
|
|
|
boost::format
|
|
one_digit_after_decimal() {
|
|
return boost::format("%1$.1f");
|
|
}
|
|
|
|
boost::format
|
|
two_digits_after_decimal() {
|
|
return boost::format("%1$.2f");
|
|
}
|
|
|
|
} // namespace stat_trackers
|