aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ruptime
Commit message (Collapse)AuthorAgeFilesLines
* Remove extra spaces for the load average of machines that are down.Yoshihiro Takahashi2020-04-041-10/+13
| | | | | | | | | PR: 245296 Submitted by: martin _at_ lispworks.com MFC after: 1 week Notes: svn path=/head/; revision=359631
* Fix indentation in ruptime command output for hosts in the "down" state.Yoshihiro Takahashi2019-01-121-1/+1
| | | | | | | | PR: 234239 MFC after: 1 week Notes: svn path=/head/; revision=342965
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Update manpage date to when the deprecation notice was removed.Jeremie Le Hen2017-10-271-1/+1
| | | | | | | Reported by: bcr Notes: svn path=/head/; revision=325049
* rwho/ruptime/rwhod shouldn't be gated by RCMDS.Jeremie Le Hen2017-08-081-9/+0
| | | | | | | | | | | | | | | | | | | | | | As peter@ points out in pr/220953: "rwho, rwhod and ruptime are not part of the remote login suite (rsh, rlogin etc). They should *not* be in the rcmds package which is disabled by default. We rely on rwho/rwhod/ruptime in the freebsd.org cluster." This commit is a re-commit of r322029 and r322031 with a better commit log, as pointed out by ngie@. This also includes the necesary changes to OptionalObsoleteFiles.inc, as requested by jhb@. PR: 220953 Reported by: peter@, jhb@ Differential Revision: https://reviews.freebsd.org/D11743 Notes: svn path=/head/; revision=322277
* Revert r322029 and r322031 so as to recommit them with a better commit log.Jeremie Le Hen2017-08-081-0/+9
| | | | | | | | PR: 220953 Reported by: ngie@ Notes: svn path=/head/; revision=322276
* Remove deprecation notice for ruptime/rwho/rwhod.Jeremie Le Hen2017-08-031-9/+0
| | | | | | | | PR: 220953 Reported by: peter Notes: svn path=/head/; revision=322031
* Add deprecation notices for all rcmd toolsAllan Jude2017-07-041-1/+10
| | | | | | | | | | | Submitted by: bcr Reviewed by: emaste, bapt, jhl MFC after: immediate Relnotes: yes Differential Revision: https://reviews.freebsd.org/D11471 Notes: svn path=/head/; revision=320644
* Fix formatting. ruptime output on FreeBSD cluster machines annoyed meBruce Evans2017-03-041-21/+44
| | | | | | | | | | | | | | | | | | | | | | | | | by usually being double-spaced due to auto-wrap at column 80. r212771 increased width of the hostname field from 12 to 25. This was supposed to allow for 80-column output with all 3 load averages taking 5 characters each, but it actually gave width exactly 80 and thus worse than useless auto-wrap in that case. 3 wide load average fields are unusual, but later expansion of another field gave the auto-wrap with just 2 wide load average fields. Change to dynamic field widths for all fields except the uptime. This also fixes the formatting of high (above 9999) user counts and not very high (above 9.99) load averages. The formatting for numbers now breaks at 99999.99, but scientific notation should be used starting well below that. The field width for the uptime remains hard-coded to work consistently for uptimes less than 10000 days, but this gives too much space for small uptimes. Punctuation between fields could be improved in many ways, for example by removing it. Notes: svn path=/head/; revision=314640
* Renumber copyright clause 4Warner Losh2017-02-282-2/+2
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Create a rcmds package.Glen Barber2016-01-211-0/+2
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=294517
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
|/ | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* Add missing static keywords to ruptime(1)Ed Schouten2011-11-061-20/+19
| | | | Notes: svn path=/head/; revision=227178
* Make some internal fixes to ruptime(1):Ed Schouten2011-10-162-45/+40
| | | | | | | | | | | | | - Prevent possible unaligned access to struct whoent. - Increase uptime column by one, to properly print hosts with an uptime greater than 1000 days. - Reduce code complexity by storing struct whod inside struct hs. - Set WARNS to 6. MFC after: 3 months Notes: svn path=/head/; revision=226419
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-112-8/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* Increase the hostname display width. Many machines are namedDavid E. O'Brien2010-09-161-2/+2
| | | | | | | | with >12 characters. This still allows for 80 column output with load averages of 99.99, 99.99, 99.99. Notes: svn path=/head/; revision=212771
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+3
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+1
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-1/+0
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* Initialize variable "now" before using it (it is used by the LEFTEARTHAntoine Brodin2008-03-171-1/+1
| | | | | | | | | | | | macro) PR: 121418 Submitted by: Atsuo Ohki Approved by: rwatson (mentor) MFC after: 1 month Notes: svn path=/head/; revision=177316
* - Do not allocate memory to entries in /var/rwho which have been down forSuleiman Souhlal2005-09-021-3/+3
| | | | | | | | | | more than 4 days - waste of memory. Obtained from: DragonFlyBSD (liamfoy) MFC after: 3 days Notes: svn path=/head/; revision=149719
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-05-211-1/+1
| | | | Notes: svn path=/head/; revision=146466
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131491
* Forgot to update the date field; from David Magda <dmagda@magda.ca>.Juli Mallett2003-03-011-1/+1
| | | | Notes: svn path=/head/; revision=111715
* Add functionality to only list hosts specified on the command line. If noneJuli Mallett2003-03-012-67/+101
| | | | | | | | | | | | | | | | are specified the old behaviour is old. The submitted applied a much cleaner diff to ruptime.c, however it did not cover cases like listing failures. It would probably be a good idea to move the printing from the ruptime function, and have that function just be used to build the list, as that would unbreak sorting, but this diff is intended to be clear, relative to the original code. As the sort order is the order specified on the command line, for now, such is documented in the manual page accordingly. Submitted by: Edward J. M. Blocklesby <ejb@lythe.org.uk> MFC after: 3 weeks Notes: svn path=/head/; revision=111714
* Use __FBSDID(), ANSIfy headings, use const/unsigned in minor butMark Murray2002-04-281-24/+16
| | | | | | | appropriate places. Notes: svn path=/head/; revision=95617
* Use `The .Nm utility'Philippe Charnier2002-04-201-4/+6
| | | | Notes: svn path=/head/; revision=95124
* remove __PWarner Losh2002-03-221-8/+8
| | | | Notes: svn path=/head/; revision=92921
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68963
* Do not dot terminate err() string. Cross reference using .XrPhilippe Charnier2000-03-262-10/+10
| | | | Notes: svn path=/head/; revision=58620
* Document that hosts for which no status report has been received forNik Clayton1999-11-011-1/+2
| | | | | | | | | | | 4 days are considered to have LEFT_EARTH(), and will not be shown in the list. PR: docs/14299 Submitted by: Ben Smithurst <ben@scientia.demon.co.uk> Notes: svn path=/head/; revision=52764
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Mention rwhod(8) in the SEE ALSO sectionBrian Somers1999-08-211-2/+3
| | | | Notes: svn path=/head/; revision=50131
* Specify that `ruptime' data is broadcast once every three minutes, notChris Costello1999-08-141-2/+2
| | | | | | | | | | once every minute. PR: docs/13130 Submitted by: Ben Smithurst <ben@scientia.demon.co.uk> Notes: svn path=/head/; revision=49701
* Small formatting change to interval() to align columns so that:Marc G. Fournier1997-03-311-3/+3
| | | | | | | | | | | | | toronto up 5+18:58, 0 users, load 0.00, 0.00, 0.00 zeus up 109+13:53, 0 users, load 0.55, 0.28, 0.15 looks like: toronto up 5+18:58, 0 users, load 0.00, 0.00, 0.00 zeus up 109+13:53, 0 users, load 0.55, 0.28, 0.15 Notes: svn path=/head/; revision=24433
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-222-2/+2
| | | | Notes: svn path=/head/; revision=23012
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-142-2/+2
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Description:Marc G. Fournier1996-10-231-2/+4
| | | | | | | | | | | | | | Machine come and go... Little patch removes lists down for over 4 days from the list. (If you haven't noticed they are down in that period, you should turn them off!) Closes: PR#bin/1361 Submitted by: xaa@stack.urc.tue.nl Notes: svn path=/head/; revision=19117
* add missing comma(s) in .Xr macrosWolfram Schneider1996-09-231-1/+2
| | | | Notes: svn path=/head/; revision=18480