mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 22:59:27 +00:00
fix: slider max hashrate on kH/s mode
This commit is contained in:
parent
2e18c4c5fb
commit
82c55601cc
1 changed files with 5 additions and 1 deletions
|
@ -167,7 +167,7 @@ impl crate::disk::state::Xvb {
|
||||||
|
|
||||||
ui.add_space(space_h);
|
ui.add_space(space_h);
|
||||||
|
|
||||||
let hashrate_xmrig = {
|
let mut hashrate_xmrig = {
|
||||||
if lock!(gui_api_xmrig).hashrate_raw_15m > 0.0 {
|
if lock!(gui_api_xmrig).hashrate_raw_15m > 0.0 {
|
||||||
lock!(gui_api_xmrig).hashrate_raw_15m
|
lock!(gui_api_xmrig).hashrate_raw_15m
|
||||||
} else if lock!(gui_api_xmrig).hashrate_raw_1m > 0.0 {
|
} else if lock!(gui_api_xmrig).hashrate_raw_1m > 0.0 {
|
||||||
|
@ -177,6 +177,10 @@ impl crate::disk::state::Xvb {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if self.manual_donation_metric == ManualDonationMetric::Kilo {
|
||||||
|
hashrate_xmrig /= 1000.0;
|
||||||
|
}
|
||||||
|
|
||||||
let slider_help_text = if self.mode == XvbMode::ManuallyDonate {
|
let slider_help_text = if self.mode == XvbMode::ManuallyDonate {
|
||||||
XVB_MANUAL_SLIDER_DONATE_HELP
|
XVB_MANUAL_SLIDER_DONATE_HELP
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue