mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-01-18 11:54:40 +00:00
fix: log adjustement
This commit is contained in:
parent
093bec36a5
commit
300bc9c111
1 changed files with 4 additions and 2 deletions
|
@ -93,12 +93,14 @@ fn time_that_could_be_spared(hr: f32, min_hr: f32) -> u32 {
|
||||||
let minimum_time_required_on_p2pool = XVB_TIME_ALGO as f32 / (hr / min_hr);
|
let minimum_time_required_on_p2pool = XVB_TIME_ALGO as f32 / (hr / min_hr);
|
||||||
info!("XvB Process | Time of algo / local hashrate / minimum hashrate = minimum time required on p2pool\n{XVB_TIME_ALGO} / ({hr} / {min_hr}) = {minimum_time_required_on_p2pool}");
|
info!("XvB Process | Time of algo / local hashrate / minimum hashrate = minimum time required on p2pool\n{XVB_TIME_ALGO} / ({hr} / {min_hr}) = {minimum_time_required_on_p2pool}");
|
||||||
let spared_time = XVB_TIME_ALGO as f32 - minimum_time_required_on_p2pool;
|
let spared_time = XVB_TIME_ALGO as f32 - minimum_time_required_on_p2pool;
|
||||||
info!("XvB Process | Time of algo - minimum time required on p2pool = time that can be spared.\n{XVB_TIME_ALGO} - {minimum_time_required_on_p2pool}");
|
info!("XvB Process | Time of algo - minimum time required on p2pool = time that can be spared.\n{XVB_TIME_ALGO} - {minimum_time_required_on_p2pool} = {spared_time}");
|
||||||
// if less than 6 seconds, XMRig could hardly have the time to mine anything.
|
// if less than 6 seconds, XMRig could hardly have the time to mine anything.
|
||||||
if spared_time >= 6.0 {
|
if spared_time >= 6.0 {
|
||||||
info!("XvB Process | sparted time is equal or less than 6 seconds, so everything goes to p2pool.");
|
|
||||||
return spared_time as u32;
|
return spared_time as u32;
|
||||||
}
|
}
|
||||||
|
info!(
|
||||||
|
"XvB Process | sparted time is equal or less than 6 seconds, so everything goes to p2pool."
|
||||||
|
);
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue