Moved setting of previous process times to block where background mining is started, and added an explicit sleep in that block to wait for some mining to occur.
// If we get here, then previous values are initialized.
// Let's get some current data for comparison.
@ -659,7 +646,17 @@ namespace cryptonote
{
MGINFO(__func__<<" : cpu is "<<unsigned(idle_percentage)<<"% idle, idle threshold is "<<unsigned(get_idle_threshold())<<"\%, ac power : "<<on_ac_power<<", background mining started, good luck!");