Skip to content

Commit

Permalink
fix the "{{.Uptime}}" template variable
Browse files Browse the repository at this point in the history
	Displays uptime, can be placed in a template.
  • Loading branch information
aerth committed Apr 18, 2016
1 parent fb23c37 commit d1a2761
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,10 @@ func main() {
log.Printf("Info: Got listener %s %s", listener.Addr().String(), listener.Addr().Network())
}
go func() {
for {
boottime := time.Now()
cosgo.Boottime = boottime
}

boottime := time.Now()
cosgo.Boottime = boottime

}()
// Start Serving Loop
for {
Expand Down

0 comments on commit d1a2761

Please sign in to comment.