mirror of
https://github.com/Wojtek242/rwmstatus.git
synced 2024-11-24 00:15:25 +01:00
Minor fix in variable location
This commit is contained in:
parent
d2a147e813
commit
dcdff743df
@ -205,12 +205,12 @@ fn main() {
|
||||
let batts = get_batteries();
|
||||
let times = get_times();
|
||||
|
||||
let status = cstring(&format!("T:{} L:{} B:{} {}", temps, avgs, batts, times));
|
||||
unsafe {
|
||||
XStoreName(display, XDefaultRootWindow(display), status.as_ptr());
|
||||
XSync(display, false as i32);
|
||||
}
|
||||
|
||||
thread::sleep(time::Duration::from_secs(60));
|
||||
let status = cstring(&format!("T:{} L:{} B:{} {}", temps, avgs, batts, times));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user