Skip to content

Commit

Permalink
better debug
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Aug 26, 2024
1 parent 814c1f6 commit cdd8fa8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/controllers/systems.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ async function load_systems(systemClients) {

exports.get_systems = async function (req, res) {
if ((systemList.length == 0) || (systemListTime < (Date.now() - 60 * 1000 * 2))) {
console.log("Loading Systems - systemTime: " + systemListTime + " compare to: " + (Date.now() - 60 * 1000 * 2));
systemListTime = Date.now(); // set this first to prevent multiple calls to load_systems
await load_systems(req.systemClients);
}
Expand Down

0 comments on commit cdd8fa8

Please sign in to comment.