opnsense-src/usr.bin/w
Marius Halden 6e6febb54d w: Fix idle time in json output, add login/idle times to json output
Currently the idle time will show as `true` part of the time in the json
output and quoting depends on what is being printed. Make sure it's
always printed correctly and for consistency treated as a string in the
json output.

Login time delta and since times are currently exposed in the xml
output, expose these times in the json output as well.

In the json and xml outputs expose the number of seconds idle as a new
field or attribute respectively.

MFC after:	1 week
Sponsored by:	Modirum MDPay
Event:		Oslo Hackathon 202508
Differential Revision:	https://reviews.freebsd.org/D52237
2025-08-29 16:53:26 +02:00
..
extern.h usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
pr_time.c w: Fix idle time in json output, add login/idle times to json output 2025-08-29 16:53:26 +02:00
proc_compare.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
uptime.1 usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
w.1 manpages: prefer linking to xo_options.7 over xo_parse_args.3 2025-07-16 12:02:24 -06:00
w.c w(1): fix libxo output being locale dependant 2024-10-14 10:43:38 +02:00