Skip to content

Commit fa864eb

Browse files
committed
Correct regression after rebase on update_scheduler
1 parent b615145 commit fa864eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gridcoin/scraper/scraper.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ void Scraper(bool bSingleShot)
15781578
_log(logattribute::INFO, "Scraper", "Superblock not needed. age=" + ToString(sbage));
15791579
_log(logattribute::INFO, "Scraper", "Sleeping for " + ToString(scraper_sleep() / 1000) +" seconds");
15801580

1581-
if (!MilliSleep(nScraperSleep)) return;
1581+
if (!MilliSleep(scraper_sleep())) return;
15821582
}
15831583
}
15841584

@@ -1695,8 +1695,8 @@ void Scraper(bool bSingleShot)
16951695

16961696
ScraperHousekeeping();
16971697

1698-
_log(logattribute::INFO, "Scraper", "Sleeping for " + ToString(nScraperSleep / 1000) +" seconds");
1699-
if (!MilliSleep(nScraperSleep)) return;
1698+
_log(logattribute::INFO, "Scraper", "Sleeping for " + ToString(scraper_sleep() / 1000) +" seconds");
1699+
if (!MilliSleep(scraper_sleep())) return;
17001700
}
17011701
else
17021702
// This will break from the outer while loop if in singleshot mode and end execution after one pass.
@@ -1765,7 +1765,7 @@ void ScraperSubscriber()
17651765
// Use the same sleep interval configured for the scraper.
17661766
_log(logattribute::INFO, "ScraperSubscriber", "Sleeping for " + ToString(scraper_sleep() / 1000) +" seconds");
17671767

1768-
if (!MilliSleep(nScraperSleep)) return;
1768+
if (!MilliSleep(scraper_sleep())) return;
17691769
}
17701770
}
17711771

0 commit comments

Comments
 (0)