Only throttle warn on rate >= display rate

async_hist_loading
Tyler Goodlet 2022-02-16 12:20:17 -05:00
parent a073039b30
commit b1dd24d1f7
1 changed files with 3 additions and 1 deletions

View File

@ -131,6 +131,7 @@ async def graphics_update_loop(
# of copying it from last bar's close # of copying it from last bar's close
# - 1-5 sec bar lookback-autocorrection like tws does? # - 1-5 sec bar lookback-autocorrection like tws does?
# (would require a background history checker task) # (would require a background history checker task)
display_rate = linked.godwidget.window.current_screen().refreshRate()
chart = linked.chart chart = linked.chart
@ -215,7 +216,8 @@ async def graphics_update_loop(
# in the absolute worst case we shouldn't see more then # in the absolute worst case we shouldn't see more then
# twice the expected throttle rate right!? # twice the expected throttle rate right!?
and quote_rate >= _quote_throttle_rate * 1.5 # and quote_rate >= _quote_throttle_rate * 2
and quote_rate >= display_rate
): ):
log.warning(f'High quote rate {symbol.key}: {quote_rate}') log.warning(f'High quote rate {symbol.key}: {quote_rate}')