Host C Specs


Directory: src/c/
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 2 / 0 / 2
Functions: 100.0% 1 / 0 / 1
Branches: -% 0 / 0 / 0

core/health/minute_window.c
Line Branch Exec Source
1 /**
2 * @file minute_window.c
3 * @brief Where a run of minute records lands in a window that ends at a given minute.
4 *
5 * @ingroup lib_core
6 */
7 #include "health/minute_window.h"
8
9 4 int minute_window_first_slot(time_t first_min, time_t end_min, int minutes)
10 {
11 4 return (int)(first_min - end_min) + minutes - 1;
12 }
13