Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2014 21:52:11 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r274406 - head/usr.bin/w
Message-ID:  <201411112152.sABLqBlm033645@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Tue Nov 11 21:52:10 2014
New Revision: 274406
URL: https://svnweb.freebsd.org/changeset/base/274406

Log:
  Fix text output for the uptime command.
  
  Reported by: "Max N. Boyarov" <zotrix@bsd.by>, ae@

Modified:
  head/usr.bin/w/w.c

Modified: head/usr.bin/w/w.c
==============================================================================
--- head/usr.bin/w/w.c	Tue Nov 11 21:37:17 2014	(r274405)
+++ head/usr.bin/w/w.c	Tue Nov 11 21:52:10 2014	(r274406)
@@ -509,7 +509,7 @@ pr_header(time_t *nowp, int nusers)
 	}
 
 	/* Print number of users logged in to system */
-	xo_emit(" {:users/%d} user%s", nusers, nusers == 1 ? "" : "s");
+	xo_emit(" {:users/%d} {N:user%s}", nusers, nusers == 1 ? "" : "s");
 
 	/*
 	 * Print 1, 5, and 15 minute load averages.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411112152.sABLqBlm033645>