mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-12-23 03:59:25 +00:00
chore: Indention query
This commit is contained in:
parent
738c0826c8
commit
edb27100bb
1 changed files with 10 additions and 10 deletions
|
@ -414,8 +414,8 @@ func (repo *MoneroRepo) ProcessJob(report ProbeReport, proberId int64) error {
|
|||
qstats := `SELECT
|
||||
SUM(if(is_available='1',1,0)) AS online,
|
||||
SUM(if(is_available='0',1,0)) AS offline,
|
||||
SUM(if(id='0',0,1)) AS total_fetched FROM
|
||||
tbl_probe_log WHERE node_id = ? AND date_checked > ?`
|
||||
SUM(if(id='0',0,1)) AS total_fetched
|
||||
FROM tbl_probe_log WHERE node_id = ? AND date_checked > ?`
|
||||
repo.db.Get(&nodeStats, qstats, report.NodeInfo.Id, limitTs)
|
||||
|
||||
avgUptime := (float64(nodeStats.OnlineCount) / float64(nodeStats.TotalFetched)) * 100
|
||||
|
|
Loading…
Reference in a new issue