better VM page handling

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-24 01:17:37 -07:00
parent d494f0fe47
commit 14199d588e
1 changed files with 7 additions and 2 deletions

View File

@ -11,6 +11,9 @@ import "runtime/debug"
import "github.com/gookit/config"
import "github.com/gobuffalo/packr"
// will try to get this hosts FQDN
import "github.com/Showmax/go-fqdn"
// import "github.com/golang/protobuf/proto"
import pb "git.wit.com/wit/witProtobuf"
@ -95,10 +98,12 @@ func main() {
gui.Data.Height = config.Int("height")
// TODO: figure out the hostname the right way
gui.Data.Hostname = "librem15.lab.wit.com"
hostname := fqdn.Get()
log.Println("fqdn.Get() = ", hostname)
gui.Data.Hostname = hostname
gui.Data.IPv6 = "2604:bbc0:3:3:0:10:0:1004"
gui.Data.Version = "v0.5"
gui.Data.Version = "v0.6"
gui.Data.GitCommit = GITCOMMIT
gui.Data.GoVersion = GOVERSION
gui.Data.Buildtime = BUILDTIME