Достаточно умножить 60 на 60 и 24, чтобы получить r/h и r/d? } else if (ngx_strncmp(p, "r/m", 3) == 0) { scale = 60; len -= 3; }