Anonymous Usage Reporting

This commit is contained in:
Jakob Borg
2014-06-11 20:04:23 +02:00
parent 7454670b0a
commit f40f3b3b7b
7 changed files with 260 additions and 13 deletions

View File

@@ -393,6 +393,18 @@ func main() {
}
}
if cfg.Options.UREnabled && cfg.Options.URAccepted < usageReportVersion {
l.Infoln("Anonymous usage report has changed; revoking acceptance")
cfg.Options.UREnabled = false
}
if cfg.Options.UREnabled {
go usageReportingLoop(m)
go func() {
time.Sleep(10 * time.Minute)
sendUsageRport(m)
}()
}
<-stop
l.Okln("Exiting")
}