summaryrefslogtreecommitdiffstats
path: root/patches/procps-3.2.8/generic/30_w.1.dpatch
blob: f92b89ea49bcfae47b2f03e3a1ed72f4df908b3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#! /bin/sh /usr/share/dpatch/dpatch-run
## 30_w.1.dpatch by  <csmall@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Cleaned up the w man page
## DP: Make note of the time formats #414906

@DPATCH@
diff -urNad procps-3.2.7~/w.1 procps-3.2.7/w.1
--- procps-3.2.7~/w.1	2009-01-09 16:26:36.000000000 +1100
+++ procps-3.2.7/w.1	2009-01-09 16:33:16.000000000 +1100
@@ -4,26 +4,26 @@
 .SH NAME
 w \- Show who is logged on and what they are doing.
 .SH SYNOPSIS
-.B w \-
-.RB [ husfVo ]
+.B w
+.RB [ \-husfVo ]
 .RI [ user ]
 .SH DESCRIPTION
-.B "w "
+.B w
 displays information about the users currently on the machine,
 and their processes.
 The header shows, in this order,  the current time,
 how long the system has been running,
 how many users are currently logged on,
 and the system load averages for the past 1, 5, and 15 minutes.
-.sp
+
 The following entries are displayed for each user:
 login name, the tty name, the remote host, login time, idle time, JCPU, PCPU,
 and the command line of their current process.
-.sp
+
 The JCPU time is the time used by all processes attached to the tty.  It
 does not include past background jobs, but does include currently
 running background jobs.
-.sp
+
 The PCPU time is the time used by the current process, named in the "what"
 field.
 
@@ -35,7 +35,7 @@
 .TP 0.5i
 .B "\-u "
 Ignores the username while figuring out the current process and cpu
-times.  To demonstrate this, do a "su" and do a "w" and a "w -u".
+times.  To demonstrate this, do a "su" and do a "w" and a "w \-u".
 .TP 0.5i
 .B "\-s "
 Use the short format.
@@ -70,6 +70,19 @@
 process information
 .PP
 
+.SH NOTES
+The output for Idle, JCPU and PCPU times vaires depending on if you use
+the \-o (old style) option or not. These formats can be confusing if you 
+switch between the old style and standard.  In the following paragraphs
+days are DD, hours HH, minutes MM, seconds SS and 100ths of seconds CC.
+
+The standard format is DDdays, HH:MMm, MM:SS or SS.CC if the times are 
+greater than 2 days, 1hour, or 1 minute respectively.
+
+For the \-o option, the output will be either  DDdays, HH:MM, MM:SSm or
+blank if the times are greater than 2 days, 1 hour or 1 minute
+respectively.
+
 .SH "SEE ALSO"
 .BR free (1),
 .BR ps (1),