diba-io / bitmask-core

Core functionality for the BitMask wallet
https://bitmask.app
Other
95 stars 23 forks source link

Fix multi-day live metrics #438

Closed cryptoquick closed 9 months ago

cryptoquick commented 9 months ago

So, I noticed that at midnight, the Hut8 server resets our live metrics to 0, so we still need to collect metrics every night in order to tally the last day. That's the simplest way around the issue, at least. Still, this takes our server from running metrics 6 times a day to just once.

Also, I have ChatGPT help me with the solution to calculating minutes to midnight. Hopefully that code makes sense.