Minor fix in variable location

This commit is contained in:
Wojciech Kozlowski 2018-12-26 04:25:02 +05:30
parent d2a147e813
commit dcdff743df

View File

@ -205,12 +205,12 @@ fn main() {
let batts = get_batteries(); let batts = get_batteries();
let times = get_times(); let times = get_times();
let status = cstring(&format!("T:{} L:{} B:{} {}", temps, avgs, batts, times));
unsafe { unsafe {
XStoreName(display, XDefaultRootWindow(display), status.as_ptr()); XStoreName(display, XDefaultRootWindow(display), status.as_ptr());
XSync(display, false as i32); XSync(display, false as i32);
} }
thread::sleep(time::Duration::from_secs(60)); thread::sleep(time::Duration::from_secs(60));
let status = cstring(&format!("T:{} L:{} B:{} {}", temps, avgs, batts, times));
} }
} }