From b52b5ea1de72bc620d869355be9eb6e5a6ad6653 Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Sat, 28 Dec 2019 01:21:49 -0500 Subject: [PATCH] Fix typo in code... oops. --- README.md | 2 ++ src/data_conversion.rs | 2 +- src/main.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77095864..4d02d521 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ Note that all options and keybindings on GitHub may reflect the current developm - `-r `, `--rate ` will set the refresh rate in _milliseconds_. Lowest it can go is 250ms, the highest it can go is 2128 - 1. Defaults to 1000ms, and lower values may take more resources due to more frequent polling of data, and may be less accurate in some circumstances. +- `-l`, `--left_legend` will move external table legends to the left side rather than the right side. Right side is default. + ### Keybindings #### General diff --git a/src/data_conversion.rs b/src/data_conversion.rs index eaf676ca..98d6f096 100644 --- a/src/data_conversion.rs +++ b/src/data_conversion.rs @@ -284,7 +284,7 @@ pub fn convert_network_data_points(network_data: &[data_collection::network::Net if let Some(last_num_bytes_entry) = network_data.last() { rx_converted_result = get_exact_byte_values(last_num_bytes_entry.rx, true); - total_rx_converted_result = get_exact_byte_values(last_num_bytes_entry.total_rx, truefalse + total_rx_converted_result = get_exact_byte_values(last_num_bytes_entry.total_rx, false) } else { rx_converted_result = get_exact_byte_values(0, true); total_rx_converted_result = get_exact_byte_values(0, false); diff --git a/src/main.rs b/src/main.rs index fd8536e0..1f2e9f84 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,7 +65,7 @@ fn main() -> error::Result<()> { (@arg KELVIN : -k --kelvin "Sets the temperature type to Kelvin.") ) (@arg RATE_MILLIS: -r --rate +takes_value "Sets a refresh rate in milliseconds; the minimum is 250ms, defaults to 1000ms. Smaller values may take more resources.") - (@arg LEFT_LEGEND: -l --left_legend "Puts table legends on the left side rather than the default right side.") + (@arg LEFT_LEGEND: -l --left_legend "Puts external chart legends on the left side rather than the default right side.") //(@arg CONFIG_LOCATION: -co --config +takes_value "Sets the location of the config file. Expects a config file in the JSON format.") //(@arg BASIC_MODE: -b --basic "Sets bottom to basic mode, not showing graphs and only showing basic tables.") )