diff --git a/common/include/villas/hist.hpp b/common/include/villas/hist.hpp index a2c5c0b94..fb7f3ce21 100644 --- a/common/include/villas/hist.hpp +++ b/common/include/villas/hist.hpp @@ -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. diff --git a/common/lib/hist.cpp b/common/lib/hist.cpp index 7ee048873..7d28e48ad 100644 --- a/common/lib/hist.cpp +++ b/common/lib/hist.cpp @@ -128,7 +128,7 @@ void Hist::plot(Logger logger) const { std::vector 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); diff --git a/include/villas/nodes/test_rtt.hpp b/include/villas/nodes/test_rtt.hpp index 56c78058f..e1cce1715 100644 --- a/include/villas/nodes/test_rtt.hpp +++ b/include/villas/nodes/test_rtt.hpp @@ -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; diff --git a/lib/nodes/webrtc/signaling_message.cpp b/lib/nodes/webrtc/signaling_message.cpp index f7c6d0567..e11f7471b 100644 --- a/lib/nodes/webrtc/signaling_message.cpp +++ b/lib/nodes/webrtc/signaling_message.cpp @@ -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(""); }}, message); } diff --git a/lib/path_source.cpp b/lib/path_source.cpp index 315fc0473..450956a12 100644 --- a/lib/path_source.cpp +++ b/lib/path_source.cpp @@ -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)) {