Added target difficulty to statusbar.

This commit is contained in:
Revertron
2021-04-10 17:59:17 +02:00
parent b1761b69a4
commit 04189f319a
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -240,13 +240,13 @@ fn action_loaded(context: &Arc<Mutex<Context>>, web_view: &mut WebView<()>) {
}
s
}
Event::MinerStats { thread, speed, max_diff } => {
Event::MinerStats { thread, speed, max_diff, aim_diff } => {
if status.max_diff < max_diff {
status.max_diff = max_diff;
}
status.set_thread_speed(thread, speed);
if thread == threads - 1 {
format!("setLeftStatusBarText('Mining speed {} H/s, max found difficulty {}.'); showMiningIndicator(true, false);", status.get_speed(), status.max_diff)
format!("setLeftStatusBarText('Mining speed {} H/s, max found difficulty {}/{}.'); showMiningIndicator(true, false);", status.get_speed(), status.max_diff, aim_diff)
} else {
String::new()
}