Make update rate u128 across the board. (#64)

This commit is contained in:
Clement Tsang 2020-03-05 01:30:53 -05:00 committed by GitHub
parent 657cb2dd9b
commit d018c6ee88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -200,7 +200,7 @@ impl Default for AppHelpDialogState {
/// AppConfigFields is meant to cover basic fields that would normally be set /// AppConfigFields is meant to cover basic fields that would normally be set
/// by config files or launch options. Don't need to be mutable (set and forget). /// by config files or launch options. Don't need to be mutable (set and forget).
pub struct AppConfigFields { pub struct AppConfigFields {
pub update_rate_in_milliseconds: u64, pub update_rate_in_milliseconds: u128,
pub temperature_type: temperature::TemperatureType, pub temperature_type: temperature::TemperatureType,
pub use_dot: bool, pub use_dot: bool,
pub left_legend: bool, pub left_legend: bool,
@ -296,7 +296,7 @@ impl App {
#[allow(clippy::too_many_arguments)] #[allow(clippy::too_many_arguments)]
pub fn new( pub fn new(
show_average_cpu: bool, temperature_type: temperature::TemperatureType, show_average_cpu: bool, temperature_type: temperature::TemperatureType,
update_rate_in_milliseconds: u64, use_dot: bool, left_legend: bool, update_rate_in_milliseconds: u128, use_dot: bool, left_legend: bool,
use_current_cpu_total: bool, current_widget_selected: WidgetPosition, use_current_cpu_total: bool, current_widget_selected: WidgetPosition,
show_disabled_data: bool, use_basic_mode: bool, show_disabled_data: bool, use_basic_mode: bool,
) -> App { ) -> App {

View File

@ -123,7 +123,7 @@ fn main() -> error::Result<()> {
let mut app = App::new( let mut app = App::new(
show_average_cpu, show_average_cpu,
temperature_type, temperature_type,
update_rate_in_milliseconds as u64, update_rate_in_milliseconds,
use_dot, use_dot,
left_legend, left_legend,
use_current_cpu_total, use_current_cpu_total,