Skip to content

Commit

Permalink
status line can be a maximum of 48 characters long.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Jan 24, 2011
1 parent 3d8f930 commit 1c15955
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions users_logged_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ def getUsersLoggedIn():
userWord = 'users'
# Build our string and report the warning
sys.stdout.write("status warn %d %s logged in:" % (userNum, userWord))
for user in users:
sys.stdout.write(" %s" % (user,))
sys.stdout.write(", " . join(users)[:48])
sys.stdout.write('\n')
sys.stdout.write("metric users_logged_in int %d" % (userNum))
sys.stdout.write('\n')
Expand Down

0 comments on commit 1c15955

Please sign in to comment.