mirror of
https://github.com/edu4rdshl/powerman.git
synced 2026-07-17 23:24:53 +00:00
Added informative print.
This commit is contained in:
parent
bbf536fd6d
commit
b5f01807d0
2 changed files with 1 additions and 0 deletions
BIN
bin/powerman
BIN
bin/powerman
Binary file not shown.
|
|
@ -28,6 +28,7 @@ fn main() {
|
|||
let execution_time = execution_time * 1000;
|
||||
|
||||
let tick = schedule_recv::periodic_ms(execution_time);
|
||||
println!("You are going to {} your system if the battery level is equal or less to {}% and the check is done every {} seconds.", &args[3], bat_discharging_action, execution_time/1000);
|
||||
loop {
|
||||
tick.recv().unwrap();
|
||||
battery_critical_action(bat_discharging_action, &args[3]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue