Mephiles / torntools_extension

A browser extension for Torn.com
GNU General Public License v3.0
106 stars 60 forks source link

[Bug] Stakeout update frequency setting doesn't work #791

Closed morgan35543 closed 2 months ago

morgan35543 commented 2 months ago

No matter what value I set the stakeout update frequency setting to be, the updated time always goes to 30s before resetting.

I don't know which of these is the actual issue:

  1. The stakeout update frequency doesn't do anything

  2. The timer is not associated to the stakouts right below it image

  3. The timer is just hardcoded to go up to 30 no matter the stakout update frequency setting

morgan35543 commented 2 months ago

I'm trying to use this setting: image

Sashank999 commented 2 months ago

The timer is actually hardcoded to be 30 seconds. You can only increase timer, which some people do to minimise their API usage. Even if you decrease the timer to be less than 30 seconds, it does not do anything to the extension. And even if the API calls are reduced to be more frequent than 30 seconds, it has no effect as Torn API caches information and updates information only every 30 seconds from the last call. That is, the API will just give you information updated in the last 30 seconds. Fetching it more frequently does not give you latest data. It will just give you the same old data.