Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyiwy committed Dec 3, 2019
1 parent de548b8 commit 24d7b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contoller/controler.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ func Uptime(c *gin.Context) {
days := diff / day
hours := (diff - days*day) / hour
minutes := (diff - days*day - hours*hour) / minute
second := (diff - minutes*minute - days*day - hours*hour) / second
seconds := (diff - minutes*minute - days*day - hours*hour) / second

c.String(http.StatusOK,
fmt.Sprintf("The system launched in %s. already running for %d days, %d hours, %d minues, %d seconds.",
begin.Format("2006-01-02 15:04:05"),
days,
hours,
minutes,
second,
seconds,
))
}

Expand Down

0 comments on commit 24d7b0b

Please sign in to comment.