mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Fix some typos and harmonize log output
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
parent
abed592b9d
commit
3023ddaa3a
5 changed files with 8 additions and 8 deletions
|
@ -34,7 +34,7 @@ public:
|
|||
// Count a value within its corresponding bucket.
|
||||
void put(double value);
|
||||
|
||||
// Calcluate the variance of all counted values.
|
||||
// Calculate the variance of all counted values.
|
||||
double getVar() const;
|
||||
|
||||
// Calculate the mean average of all counted values.
|
||||
|
@ -43,7 +43,7 @@ public:
|
|||
// Calculate the standard derivation of all counted values.
|
||||
double getStddev() const;
|
||||
|
||||
// Print all statistical properties of distribution including a graphilcal plot of the histogram.
|
||||
// Print all statistical properties of distribution including a graphical plot of the histogram.
|
||||
void print(Logger logger, bool details) const;
|
||||
|
||||
// Print ASCII style plot of histogram.
|
||||
|
@ -57,7 +57,7 @@ public:
|
|||
// Prints Matlab struct containing all infos to file.
|
||||
int dumpMatlab(FILE *f) const;
|
||||
|
||||
// Write the histogram in JSON format to fiel \p f.
|
||||
// Write the histogram in JSON format to file \p f.
|
||||
int dumpJson(FILE *f) const;
|
||||
|
||||
// Build a libjansson / JSON object of the histogram.
|
||||
|
|
|
@ -128,7 +128,7 @@ void Hist::plot(Logger logger) const {
|
|||
std::vector<TableColumn> cols = {
|
||||
{-9, TableColumn::Alignment::RIGHT, "Value", "%+9.3g"},
|
||||
{-6, TableColumn::Alignment::RIGHT, "Count", "%6ju"},
|
||||
{0, TableColumn::Alignment::LEFT, "Plot", "%s", "occurences"}};
|
||||
{0, TableColumn::Alignment::LEFT, "Plot", "%s", "occurrences"}};
|
||||
|
||||
Table table = Table(logger, cols);
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ struct test_rtt {
|
|||
Format *formatter; // The format of the output file
|
||||
FILE *stream;
|
||||
|
||||
double cooldown; // Number of seconds to wait beween tests.
|
||||
double cooldown; // Number of seconds to wait between tests.
|
||||
|
||||
int current; // Index of current test in test_rtt::cases
|
||||
int counter;
|
||||
|
|
|
@ -146,7 +146,7 @@ std::string SignalingMessage::toString() const {
|
|||
return fmt::format("type=candidate, mid={}, spd=\n{}",
|
||||
c.candidate(), c.mid());
|
||||
},
|
||||
[](auto other) { return fmt::format("invalid signaling message"); }},
|
||||
[](auto other) { return fmt::format("<invalid>"); }},
|
||||
message);
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ int PathSource::read(int i) {
|
|||
toenqueue = path->hooks.process(muxed_smps, tomux);
|
||||
if (toenqueue == -1) {
|
||||
path->logger->error(
|
||||
"An error occured during hook processing. Skipping sample");
|
||||
"An error occurred during hook processing. Skipping sample");
|
||||
|
||||
} else if (toenqueue != tomux) {
|
||||
int skipped = tomux - toenqueue;
|
||||
|
@ -150,7 +150,7 @@ int PathSource::read(int i) {
|
|||
|
||||
path->received.set(i);
|
||||
|
||||
path->logger->debug("received=0b{:b}, mask=0b{:b}",
|
||||
path->logger->debug("Flags: received=0b{:b}, mask=0b{:b}",
|
||||
path->received.to_ullong(), path->mask.to_ullong());
|
||||
|
||||
if (path->mask.test(i)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue