Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo fix #29

Merged
merged 1 commit into from
Apr 26, 2020
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 docs/environment-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ZSwap-cli support of getting options from environment variables.
* `ZSWAP_ENABLED_VALUE` - enable (`Y`) or disable (`N`) ZSwap kernel module.
* `ZSWAP_SAME_FILLED_PAGES_ENABLED_VALUE` - enable (`Y`) or disable (`N`) memory pages deduplication.
* `ZSWAP_MAX_POOL_PERCENT_VALUE` - the maximum percentage of memory that the compressed pool can occupy (integer from `1` to `100`).
* `ZSWAP_COMPRESSOR_VALUE` - the default comression algorithm.
* `ZSWAP_COMPRESSOR_VALUE` - the default compression algorithm.
* `ZSWAP_ZPOOL_VALUE` - the kernel's zpool type.
* `ZSWAP_ACCEPT_THREHSOLD_PERCENT_VALUE` - the threshold at which ZSwap would start accepting pages again after it became full (integer from `1` to `100`).

Expand Down
2 changes: 1 addition & 1 deletion docs/using-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Supported command-line arguments:
* `-e` or `--enabled` - enable (`Y`) or disable (`N`) ZSwap kernel module;
* `-s` or `--same_filled_pages_enabled` - enable (`Y`) or disable (`N`) memory pages deduplication;
* `-p` or `--max_pool_percent` - the maximum percentage of memory that the compressed pool can occupy (integer from `1` to `100`);
* `-c` or `--compressor` - the default comression algorithm;
* `-c` or `--compressor` - the default compression algorithm;
* `-z` or `--zpool` - the kernel's zpool type;
* `-a` or `--accept_threhsold_percent` - the threshold at which ZSwap would start accepting pages again after it became full (integer from `1` to `100`).

Expand Down
4 changes: 2 additions & 2 deletions packaging/assets/manpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Enable or disable memory pages deduplication.
The maximum percentage of memory that the compressed pool can occupy.

#### -c, \-\-compressor
The default comression algorithm.
The default compression algorithm.

#### -z, \-\-zpool
The kernel's zpool type.
Expand All @@ -57,7 +57,7 @@ ZSwap-cli support of getting options from environment variables.
* **ZSWAP_ENABLED_VALUE** - enable (**Y**) or disable (**N**) ZSwap kernel module.
* **ZSWAP_SAME_FILLED_PAGES_ENABLED_VALUE** - enable (**Y**) or disable (**N**) memory pages deduplication.
* **ZSWAP_MAX_POOL_PERCENT_VALUE** - the maximum percentage of memory that the compressed pool can occupy (integer from **1** to **100**).
* **ZSWAP_COMPRESSOR_VALUE** - the default comression algorithm.
* **ZSWAP_COMPRESSOR_VALUE** - the default compression algorithm.
* **ZSWAP_ZPOOL_VALUE** - the kernel's zpool type.
* **ZSWAP_ACCEPT_THREHSOLD_PERCENT_VALUE** - the threshold at which ZSwap would start accepting pages again after it became full (integer from **1** to **100**).

Expand Down
4 changes: 2 additions & 2 deletions src/app/application/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void Application::PrintSettings()
std::cout << fmt::format("ZSwap enabled: {0}.\n"
"Same filled pages enabled: {1}.\n"
"Maximum pool percentage: {2}.\n"
"Comression algorithm: {3}.\n"
"Compression algorithm: {3}.\n"
"Kernel's zpool type: {4}.\n"
"Accept threhsold percentage: {5}.",
ZSwap.GetZSwapEnabled(),
Expand Down Expand Up @@ -96,7 +96,7 @@ void Application::PrintSummary()

std::cout << fmt::format("Pool: {0:.2f} MiB ({1:.1f}% of MemTotal).\n"
"Stored: {2:.2f} MiB ({3:.1f}% of SwapUsed).\n"
"Comression ratio: {4:.2f}.",
"Compression ratio: {4:.2f}.",
PoolSizeMB,
MemTotalPercent,
StoredPagesMB,
Expand Down
2 changes: 1 addition & 1 deletion src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int main(int argc, char** argv)
("e,enabled", "Enable or disable ZSwap kernel module.", cxxopts::value<std::string>())
("s,same_filled_pages_enabled", "Enable or disable memory pages deduplication.", cxxopts::value<std::string>())
("p,max_pool_percent", "The maximum percentage of memory that the compressed pool can occupy.", cxxopts::value<std::string>())
("c,compressor", "The default comression algorithm.", cxxopts::value<std::string>())
("c,compressor", "The default compression algorithm.", cxxopts::value<std::string>())
("z,zpool", "The kernel's zpool type.", cxxopts::value<std::string>())
("a,accept_threhsold_percent", "The threshold at which ZSwap would start accepting pages again after it became full.", cxxopts::value<std::string>())
("h,help", "Print this help message and exit.");
Expand Down
10 changes: 5 additions & 5 deletions src/lib/zswapobject/zswapobject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ class ZSwapObject
void SetZSwapMaxPoolPercent(const std::string&);

/**
* Gets the comression algorithm name.
* @returns Comression algorithm name.
* Gets the compression algorithm name.
* @returns Compression algorithm name.
*/
std::string& GetZSwapCompressor();

/**
* Sets the comression algorithm name.
* Sets the compression algorithm name.
* @param Value New value.
*/
void SetZSwapCompressor(const std::string&);
Expand Down Expand Up @@ -134,7 +134,7 @@ class ZSwapObject
std::string ZSwapMaxPoolPercent;

/**
* Stores the comression algorithm name.
* Stores the compression algorithm name.
*/
std::string ZSwapCompressor;

Expand Down Expand Up @@ -164,7 +164,7 @@ class ZSwapObject
const std::string ZSwapMaxPoolPercentName = "max_pool_percent";

/**
* Stores the comression algorithm internal parameter name.
* Stores the compression algorithm internal parameter name.
*/
const std::string ZSwapCompressorName = "compressor";

Expand Down