diff options
| author | Felix Hanley <felix@userspace.com.au> | 2017-06-17 10:53:02 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2017-06-17 10:53:02 +0000 |
| commit | c442e8f4fdec49ca4766459e2565cabaa4fcd3c4 (patch) | |
| tree | f925488859c174d269ded3e405d8c7d08ef0ff2b /main.go | |
| parent | ff07d87b94be949f40956d11b8af9ba9292794b5 (diff) | |
| download | dhtsearch-c442e8f4fdec49ca4766459e2565cabaa4fcd3c4.tar.gz dhtsearch-c442e8f4fdec49ca4766459e2565cabaa4fcd3c4.tar.bz2 | |
Updates to HTTP interface
Diffstat (limited to 'main.go')
| -rwxr-xr-x | main.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) } } } |
