app.VersionName
This commit is contained in:
parent
fb1df54941
commit
40cd112a2a
12
app/app.go
12
app/app.go
@ -61,6 +61,7 @@ type App struct {
|
|||||||
startStat Stat
|
startStat Stat
|
||||||
stopStat Stat
|
stopStat Stat
|
||||||
deviceState int
|
deviceState int
|
||||||
|
versionName string
|
||||||
anySyncVersion string
|
anySyncVersion string
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,6 +79,17 @@ func (app *App) Version() string {
|
|||||||
return GitSummary
|
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 {
|
type Stat struct {
|
||||||
SpentMsPerComp map[string]int64
|
SpentMsPerComp map[string]int64
|
||||||
SpentMsTotal int64
|
SpentMsTotal int64
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user