diff options
author | Otto Kekäläinen <otto@debian.org> | 2024-01-13 18:26:02 -0800 |
---|---|---|
committer | Otto Kekäläinen <otto@debian.org> | 2024-02-29 22:11:39 -0800 |
commit | bfe8c20ebe3d180f7e0b6b2ac016c749ad3a996a (patch) | |
tree | 3279d19ad648f1ddccb0f2858f90a4e02afaf9c7 /src | |
parent | 6c667402907171f3ba7ebb637e553cc6f66f4e66 (diff) |
Fix misc spelling
Diffstat (limited to 'src')
-rw-r--r-- | src/btop.cpp | 4 | ||||
-rw-r--r-- | src/btop_input.hpp | 2 | ||||
-rw-r--r-- | src/btop_menu.cpp | 4 | ||||
-rw-r--r-- | src/btop_theme.hpp | 2 | ||||
-rw-r--r-- | src/btop_tools.cpp | 4 | ||||
-rw-r--r-- | src/btop_tools.hpp | 4 | ||||
-rw-r--r-- | src/freebsd/btop_collect.cpp | 4 | ||||
-rw-r--r-- | src/linux/btop_collect.cpp | 4 | ||||
-rw-r--r-- | src/openbsd/btop_collect.cpp | 2 | ||||
-rw-r--r-- | src/osx/btop_collect.cpp | 2 |
10 files changed, 16 insertions, 16 deletions
diff --git a/src/btop.cpp b/src/btop.cpp index 5240043..8eae107 100644 --- a/src/btop.cpp +++ b/src/btop.cpp @@ -452,7 +452,7 @@ namespace Runner { } }; - //* Wrapper for raising priviliges when using SUID bit + //* Wrapper for raising privileges when using SUID bit class gain_priv { int status = -1; public: @@ -885,7 +885,7 @@ int main(int argc, char **argv) { Global::start_time = time_s(); - //? Save real and effective userid's and drop priviliges until needed if running with SUID bit set + //? Save real and effective userid's and drop privileges until needed if running with SUID bit set Global::real_uid = getuid(); Global::set_uid = geteuid(); if (Global::real_uid != Global::set_uid) { diff --git a/src/btop_input.hpp b/src/btop_input.hpp index 13f14fe..91b9dc9 100644 --- a/src/btop_input.hpp +++ b/src/btop_input.hpp @@ -56,7 +56,7 @@ namespace Input { //* Last entered key extern deque<string> history; - //* Poll keyboard & mouse input for <timeout> ms and return input availabilty as a bool + //* Poll keyboard & mouse input for <timeout> ms and return input availability as a bool bool poll(const uint64_t timeout=0); //* Get a key or mouse action from input diff --git a/src/btop_menu.cpp b/src/btop_menu.cpp index fbf07c2..bf57e8c 100644 --- a/src/btop_menu.cpp +++ b/src/btop_menu.cpp @@ -490,7 +490,7 @@ namespace Menu { "Kelvin, 0 = absolute zero, 1 degree change", "equals 1 degree change in Celsius.", "", - "Rankine, 0 = abosulte zero, 1 degree change", + "Rankine, 0 = absolute zero, 1 degree change", "equals 1 degree change in Fahrenheit."}, {"show_cpu_freq", "Show CPU frequency.", @@ -651,7 +651,7 @@ namespace Menu { "", "Begin line with \"exclude=\" to change to", "exclude filter.", - "Oterwise defaults to \"most include\" filter.", + "Otherwise defaults to \"most include\" filter.", "", "Example:", "\"exclude=/boot /home/user\""}, diff --git a/src/btop_theme.hpp b/src/btop_theme.hpp index cc3fbdf..dcc00e4 100644 --- a/src/btop_theme.hpp +++ b/src/btop_theme.hpp @@ -32,7 +32,7 @@ namespace Theme { extern std::filesystem::path theme_dir; extern std::filesystem::path user_theme_dir; - //* Contains "Default" and "TTY" at indeces 0 and 1, otherwise full paths to theme files + //* Contains "Default" and "TTY" at indices 0 and 1, otherwise full paths to theme files extern vector<string> themes; //* Generate escape sequence for 24-bit or 256 color and return as a string diff --git a/src/btop_tools.cpp b/src/btop_tools.cpp index 8a85ed4..d1351e4 100644 --- a/src/btop_tools.cpp +++ b/src/btop_tools.cpp @@ -89,7 +89,7 @@ namespace Term { } bool refresh(bool only_check) { - // Query dimensions of '/dev/tty' of the 'STDOUT_FILENO' isn't avaiable. + // Query dimensions of '/dev/tty' of the 'STDOUT_FILENO' isn't available. // This variable is set in those cases to avoid calls to ioctl constinit static bool uses_dev_tty = false; struct winsize wsize {}; @@ -644,7 +644,7 @@ namespace Logger { size_t loglevel; fs::path logfile; - //* Wrapper for lowering priviliges if using SUID bit and currently isn't using real userid + //* Wrapper for lowering privileges if using SUID bit and currently isn't using real userid class lose_priv { int status = -1; public: diff --git a/src/btop_tools.hpp b/src/btop_tools.hpp index 2502786..07f7de3 100644 --- a/src/btop_tools.hpp +++ b/src/btop_tools.hpp @@ -114,7 +114,7 @@ namespace Mv { //* Save cursor position const string save = Fx::e + "s"; - //* Restore saved cursor postion + //* Restore saved cursor position const string restore = Fx::e + "u"; } @@ -286,7 +286,7 @@ namespace Tools { return is_in(str, "true", "True"); } - //* Check if a string is a valid integer value (only postive) + //* Check if a string is a valid integer value (only positive) inline bool isint(const string& str) { return all_of(str.begin(), str.end(), ::isdigit); } diff --git a/src/freebsd/btop_collect.cpp b/src/freebsd/btop_collect.cpp index decd542..a99f8df 100644 --- a/src/freebsd/btop_collect.cpp +++ b/src/freebsd/btop_collect.cpp @@ -265,7 +265,7 @@ namespace Cpu { got_sensors = true; int temp; size_t size = sizeof(temp); - sysctlbyname("dev.cpu.0.coretemp.tjmax", &temp, &size, nullptr, 0); //asuming the max temp is same for all cores + sysctlbyname("dev.cpu.0.coretemp.tjmax", &temp, &size, nullptr, 0); //assuming the max temp is same for all cores temp = (temp - 2732) / 10; // since it's an int, it's multiplied by 10, and offset to absolute zero... current_cpu.temp_max = temp; } @@ -907,7 +907,7 @@ namespace Net { } } - //? Get total recieved and transmitted bytes + device address if no ip was found + //? Get total received and transmitted bytes + device address if no ip was found for (const auto &iface : interfaces) { for (const string dir : {"download", "upload"}) { auto &saved_stat = net.at(iface).stat.at(dir); diff --git a/src/linux/btop_collect.cpp b/src/linux/btop_collect.cpp index 1799b0d..c549872 100644 --- a/src/linux/btop_collect.cpp +++ b/src/linux/btop_collect.cpp @@ -2061,7 +2061,7 @@ namespace Mem { if (access(zfs_pool_stat_path.c_str(), R_OK) == 0) { return zfs_pool_stat_path; } else { - Logger::debug("Cant access folder: " + zfs_pool_stat_path.string()); + Logger::debug("Can't access folder: " + zfs_pool_stat_path.string()); return ""; } } @@ -2266,7 +2266,7 @@ namespace Net { } //else, ignoring family==AF_PACKET (see man 3 getifaddrs) which is the first one in the `for` loop. } - //? Get total recieved and transmitted bytes + device address if no ip was found + //? Get total received and transmitted bytes + device address if no ip was found for (const auto& iface : interfaces) { if (net.at(iface).ipv4.empty() and net.at(iface).ipv6.empty()) net.at(iface).ipv4 = readfile("/sys/class/net/" + iface + "/address"); diff --git a/src/openbsd/btop_collect.cpp b/src/openbsd/btop_collect.cpp index bdcb105..9b3e1f2 100644 --- a/src/openbsd/btop_collect.cpp +++ b/src/openbsd/btop_collect.cpp @@ -859,7 +859,7 @@ namespace Net { } } - //? Get total recieved and transmitted bytes + device address if no ip was found + //? Get total received and transmitted bytes + device address if no ip was found for (const auto &iface : interfaces) { for (const string dir : {"download", "upload"}) { auto &saved_stat = net.at(iface).stat.at(dir); diff --git a/src/osx/btop_collect.cpp b/src/osx/btop_collect.cpp index df1fca3..a2c4f62 100644 --- a/src/osx/btop_collect.cpp +++ b/src/osx/btop_collect.cpp @@ -940,7 +940,7 @@ namespace Net { } } - //? Get total recieved and transmitted bytes + device address if no ip was found + //? Get total received and transmitted bytes + device address if no ip was found for (const auto &iface : interfaces) { for (const string dir : {"download", "upload"}) { auto &saved_stat = net.at(iface).stat.at(dir); |