1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-10 10:00:49 +09:00

app.VersionName

This commit is contained in:
Sergey Cherepanov 2023-06-12 15:58:23 +02:00
parent fb1df54941
commit 40cd112a2a
No known key found for this signature in database
GPG key ID: 87F8EDE8FBDF637C

View file

@ -61,6 +61,7 @@ type App struct {
startStat Stat
stopStat Stat
deviceState int
versionName string
anySyncVersion string
}
@ -78,6 +79,17 @@ func (app *App) Version() string {
return GitSummary
}
func (app *App) SetVersionName(v string) {
app.versionName = v
}
func (app *App) VersionName() string {
if app.versionName != "" {
return app.versionName
}
return AppName + ":" + GitSummary + "/any-sync:" + app.anySyncVersion
}
type Stat struct {
SpentMsPerComp map[string]int64
SpentMsTotal int64