Skip to content

Commit b2eb582

Browse files
jasnelladuh95
authored andcommitted
src: fixup histogram and options linting issues
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #65606 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
1 parent 136b93b commit b2eb582

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

src/histogram.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ Histogram::MeanCIResult Histogram::MeanCI(double confidence) const {
501501
static_cast<double>(count - 1);
502502
double standard_error = std::sqrt(variance / static_cast<double>(count));
503503
double alpha = 1.0 - confidence;
504-
double t_crit = StudentTUpperQuantile(
505-
alpha / 2.0, static_cast<double>(count - 1));
504+
double t_crit =
505+
StudentTUpperQuantile(alpha / 2.0, static_cast<double>(count - 1));
506506
double margin = t_crit * standard_error;
507507
return {mean, mean - margin, mean + margin};
508508
}

src/node_options.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -533,13 +533,12 @@ class OptionsParser {
533533
OptionEnvvarSettings env_setting = kDisallowedInEnvvar,
534534
bool default_is_true = false,
535535
OptionNamespaces namespace_id = OptionNamespaces::kNoNamespace);
536-
void AddOption(
537-
const char* name,
538-
const char* help_text,
539-
uint64_t Options::*field,
540-
OptionEnvvarSettings env_setting = kDisallowedInEnvvar,
541-
OptionNamespaces namespace_id = OptionNamespaces::kNoNamespace,
542-
bool strict = false);
536+
void AddOption(const char* name,
537+
const char* help_text,
538+
uint64_t Options::*field,
539+
OptionEnvvarSettings env_setting = kDisallowedInEnvvar,
540+
OptionNamespaces namespace_id = OptionNamespaces::kNoNamespace,
541+
bool strict = false);
543542
void AddOption(
544543
const char* name,
545544
const char* help_text,

0 commit comments

Comments
 (0)