Bendr0id / xmrigCC

RandomX, CryptoNight, Argon2 and GhostRider CPU/GPU miner with Command&Control (CC) Server and Monitoring
GNU General Public License v3.0
312 stars 108 forks source link

API Issue #349

Closed snakus closed 3 years ago

snakus commented 3 years ago

When I query http://nas.ntpt.pl:3344/admin/getClientStatusList all workes RUNNING even if some of them are offline

electroape commented 3 years ago

Looking at the code, that's a different status, it only has 'RUNNING', 'PAUSED' and 'CONFIG_UPDATED' values. You're looking for 'last_status_update' which is the time (amount of seconds from the start of the epoch) when the client was in contact last time in comparison with 'current_server_time' at the start of the JSON.

snakus commented 3 years ago

So i must write function to check last_status_update time for worker ?

electroape commented 3 years ago

Yup, with the threshold of 60 seconds to match the dashboard data.

snakus commented 3 years ago

Ok i writed wait to see if it works Thank You.