* @brief Time-ring capacity for a window: enough for the assumed max rate, capped. */
| 64 | * @brief Time-ring capacity for a window: enough for the assumed max rate, capped. |
| 65 | */ |
| 66 | static int timeRingCapacity(const double plotTimeRangeSec) |
| 67 | { |
| 68 | const double want = plotTimeRangeSec * kAssumedMaxRateHz; |
| 69 | if (want >= static_cast<double>(kMaxTimeRingSamples)) |
| 70 | return kMaxTimeRingSamples; |
| 71 | |
| 72 | return std::max(kDefaultPlotBuckets, static_cast<int>(want)); |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * @brief Builds a scrolling-history ring for the visible window plus headroom, so a |
no outgoing calls
no test coverage detected