Make update rate u128 across the board. (#64)
This commit is contained in:
parent
657cb2dd9b
commit
d018c6ee88
|
@ -200,7 +200,7 @@ impl Default for AppHelpDialogState {
|
|||
/// 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).
|
||||
pub struct AppConfigFields {
|
||||
pub update_rate_in_milliseconds: u64,
|
||||
pub update_rate_in_milliseconds: u128,
|
||||
pub temperature_type: temperature::TemperatureType,
|
||||
pub use_dot: bool,
|
||||
pub left_legend: bool,
|
||||
|
@ -296,7 +296,7 @@ impl App {
|
|||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
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,
|
||||
show_disabled_data: bool, use_basic_mode: bool,
|
||||
) -> App {
|
||||
|
|
|
@ -123,7 +123,7 @@ fn main() -> error::Result<()> {
|
|||
let mut app = App::new(
|
||||
show_average_cpu,
|
||||
temperature_type,
|
||||
update_rate_in_milliseconds as u64,
|
||||
update_rate_in_milliseconds,
|
||||
use_dot,
|
||||
left_legend,
|
||||
use_current_cpu_total,
|
||||
|
|
Loading…
Reference in New Issue