Commit 100a4e4e authored by David Vorick's avatar David Vorick

have siac look at historic uptime values

parent dbcca10e
......@@ -226,8 +226,8 @@ func hostdbviewcmd(pubkey string) {
// host.
uptimeRatio := float64(0)
if len(info.Entry.ScanHistory) > 1 {
var uptime time.Duration
var downtime time.Duration
downtime := info.Entry.HistoricDowntime
uptime := info.Entry.HistoricUptime
recentTime := info.Entry.ScanHistory[0].Timestamp
recentSuccess := info.Entry.ScanHistory[0].Success
for _, scan := range info.Entry.ScanHistory[1:] {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment