Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package/src/iomon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define MONITOR_NAME "iomon"

// Define this to be 1 to activate the artificial
// supression of i/o values so that the recovery
// suppression of i/o values so that the recovery
// of stats from the max values is checked
#define IOMON_TEST 0

Expand Down
2 changes: 1 addition & 1 deletion package/src/memmon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void const memmon::get_unit_info(nlohmann::json& unit_json) {
return;
}

// Toggle on fast memmory monitoring
// Toggle on fast memory monitoring
void const memmon::do_fastmon() {
// Fast monitoring reads the data from a special file
// This file is called smaps_rollup instead of smaps
Expand Down
4 changes: 2 additions & 2 deletions package/src/memmon.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class memmon final : public Imonitor, public MessageBase {
private:
// Default paramater list
// Default parameter list
// const static std::vector<std::string> default_memory_params{"vmem", "pss",
// "rss", "swap"};
const prmon::parameter_list params = {{"vmem", "kB", "kB"},
Expand Down Expand Up @@ -52,7 +52,7 @@ class memmon final : public Imonitor, public MessageBase {
void const get_unit_info(nlohmann::json& unit_json);
bool const is_valid() { return true; }

// Toggle on fast memmory monitoring
// Toggle on fast memory monitoring
void const do_fastmon();
};
REGISTER_MONITOR(Imonitor, memmon, "Monitor memory usage")
Expand Down
4 changes: 2 additions & 2 deletions package/src/netmon.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class netmon final : public Imonitor, public MessageBase {
// Initial values, as these stats are global counters
prmon::monitored_value_map network_stats_initial;

// Vector for network interface paramters to measure (will be constructed)
// Vector for network interface parameters to measure (will be constructed)
std::vector<std::string> interface_params;

// Which network interfaces to monitor
std::vector<std::string> monitored_netdevs;

// Nested dictionary of network_if_streams[PARMETER][DEVICE][ISTREAM*]
// Nested dictionary of network_if_streams[PARAMETER][DEVICE][ISTREAM*]
std::map<std::string,
std::unordered_map<std::string, std::unique_ptr<std::ifstream>>>
network_if_streams;
Expand Down
2 changes: 1 addition & 1 deletion package/src/nvidiamon.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (C) 2020-2025 CERN
//
// Process and thread number monitoring class
// NVIDIA GPU monitoring class
//

#ifndef PRMON_NVIDIAMON_H
Expand Down
6 changes: 3 additions & 3 deletions package/src/parameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ using monitored_average_map = std::map<std::string, avg_value>;

// parameter class holds three strings for each monitored value:
// - the name of the value
// - the units of the value for maxiumums and averages
// - the units of the value for maximums and averages
// as quite a few units don't have meaningful average values then
// these should be set to and empty string, which will suppress
// adding that informtion to the JSON output file
// these should be set to an empty string, which will suppress
// adding that information to the JSON output file
class parameter {
private:
std::string m_name;
Expand Down
4 changes: 2 additions & 2 deletions package/src/utils.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (C) 2018-2025 CERN
// License Apache2 - see LICENCE file

// Generic header for utilities used by the prmon
// mointors
// Generic header for utilities used by the prmon monitors
//

#ifndef PRMON_UTILS_H
#define PRMON_UTILS_H 1
Expand Down