aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2017-06-17 10:53:02 +0000
committerFelix Hanley <felix@userspace.com.au>2017-06-17 10:53:02 +0000
commitc442e8f4fdec49ca4766459e2565cabaa4fcd3c4 (patch)
treef925488859c174d269ded3e405d8c7d08ef0ff2b /main.go
parentff07d87b94be949f40956d11b8af9ba9292794b5 (diff)
downloaddhtsearch-c442e8f4fdec49ca4766459e2565cabaa4fcd3c4.tar.gz
dhtsearch-c442e8f4fdec49ca4766459e2565cabaa4fcd3c4.tar.bz2
Updates to HTTP interface
Diffstat (limited to 'main.go')
-rwxr-xr-xmain.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index ba35bed..eef68b5 100755
--- a/main.go
+++ b/main.go
@@ -24,6 +24,7 @@ var (
peersSkipped = expvar.NewInt("peers_skipped")
torrentsSkipped = expvar.NewInt("torrents_skipped")
torrentsSaved = expvar.NewInt("torrents_saved")
+ torrentsTotal = expvar.NewInt("torrents_total")
start = time.Now()
)
@@ -168,6 +169,7 @@ func main() {
fmt.Printf("Error saving torrent: %q\n", err)
}
torrentsSaved.Add(1)
+ torrentsTotal.Add(1)
}
}
}