This commit is contained in:
Liang Ding 2014-11-21 14:43:58 +08:00
parent e64213ed86
commit 091efbd23e
1 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ type userReport struct {
// report returns a online user statistics in pretty format.
func (u *userReport) report() string {
return "[" + u.username + "] has [" + strconv.Itoa(u.sessionCnt) + "] wide sessions, latest activity time [" +
return "[" + u.username + "] has [" + strconv.Itoa(u.sessionCnt) + "] sessions, latest activity [" +
u.updated.Format("2006-01-02 15:04:05") + "]"
}
@ -137,7 +137,7 @@ func FixedTimeReport() {
var buf bytes.Buffer
buf.WriteString("\n [" + strconv.Itoa(len(users)) + "] users are online and [" + strconv.Itoa(len(WideSessions)) +
"] wide sessions currently\n")
"] sessions currently\n")
for _, t := range users {
buf.WriteString(" " + t.report() + "\n")