power: Only update power status once per minute.
This commit is contained in:
parent
62b53199b1
commit
d2477050b5
@ -96,7 +96,7 @@ impl Widget for PowerSupply {
|
|||||||
data.append_full_text(&status);
|
data.append_full_text(&status);
|
||||||
}
|
}
|
||||||
return Some(WidgetUpdate {
|
return Some(WidgetUpdate {
|
||||||
refresh_interval: std::time::Duration::new(1, 0),
|
refresh_interval: std::time::Duration::new(60, 0),
|
||||||
data: Some(data),
|
data: Some(data),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user