OpenBSD CVS

CVS log for src/usr.bin/systat/engine.c


[BACK] Up to [local] / src / usr.bin / systat

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.30 / (download) - annotate - [select for diffs], Tue Oct 10 09:30:06 2023 UTC (7 months, 1 week ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.29: +1 -3 lines
Diff to previous 1.29 (colored)

Drop GCC_PRINTFLIKE() at function definition

This makes gcc throw a fit and having the attributes for the prototypes in
engine.h is enough.

ok claudio sthen

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jul 2 15:34:16 2021 UTC (2 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.28: +21 -5 lines
Diff to previous 1.28 (colored)

Use nanosleep() and setitimer() instead of usleep() and ualarm().
Both usleep() and ualarm() are obsolete and were removed from POSIX.
OK deraadt@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jun 2 08:32:22 2021 UTC (2 years, 11 months ago) by martijn
Branch: MAIN
Changes since 1.27: +36 -6 lines
Diff to previous 1.27 (colored)

Make the hints at the bottom row sticky by turning the knobs toggles.
Specifically this effects ^G, help and order.

While here also document the 'h' character.

Initial inspiration and diff from Anindya Mukherjee (anindya49 <at> hotmail
<dot> com)

OK bluhm@

Revision 1.27 / (download) - annotate - [select for diffs], Sat Feb 6 06:19:28 2021 UTC (3 years, 3 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Use message_set() instead of direct assignment to curr_message
to avoid leaking the current help text.

from Anindya Mukherjee

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jan 9 12:49:09 2021 UTC (3 years, 4 months ago) by jasper
Branch: MAIN
Changes since 1.25: +12 -12 lines
Diff to previous 1.25 (colored)

kill trailing whitespace

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jan 12 20:51:08 2020 UTC (4 years, 4 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.24: +21 -30 lines
Diff to previous 1.24 (colored)

Add support for human readable numbers where applicable.

OK stsp@ and bluhm@

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jul 19 15:40:11 2019 UTC (4 years, 10 months ago) by solene
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

Make systat flushing output after a page display in rawmode (flags -b or -B)

ok millert@ kurt@
code suggested by otto@

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jan 17 05:56:29 2019 UTC (5 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (colored)

use $OpenBSD markers
ok millert mpi

Revision 1.22 / (download) - annotate - [select for diffs], Thu Feb 8 07:00:33 2018 UTC (6 years, 3 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.21: +16 -1 lines
Diff to previous 1.21 (colored)

Add the order keyword to systat global command interpreter.
This command shows the available orderings for the current view, which
ordering is active, their shortcuts, and if they're in reverse order.

manpage nits jmc@
OK tedu@

Revision 1.21 / (download) - annotate - [select for diffs], Wed Apr 5 15:57:11 2017 UTC (7 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored)

Clamp size to length if snprintf ever indicates overflow
w/ millert

Revision 1.20 / (download) - annotate - [select for diffs], Wed Apr 5 04:44:03 2017 UTC (7 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

an annoying whitespace glitch

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 2 20:01:48 2016 UTC (8 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.18: +3 -4 lines
Diff to previous 1.18 (colored)

remove unused variable cur. code probably c&p from print_bar_title().
remove useless decleration of variable change.
ok kettenis@ florian@

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jan 19 07:39:24 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.17: +3 -5 lines
Diff to previous 1.17 (colored)

replace local MIN() with MINIMUM()

Revision 1.17 / (download) - annotate - [select for diffs], Mon Dec 2 02:33:41 2013 UTC (10 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.16: +16 -16 lines
Diff to previous 1.16 (colored)

views CIRCLEQ begone.

ok miller@

Revision 1.16 / (download) - annotate - [select for diffs], Tue Nov 26 21:08:12 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

unsigned char casts for ctype
ok okan

Revision 1.15 / (download) - annotate - [select for diffs], Sat Sep 7 11:43:49 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored)

Add a new screen "cpu" that simply lists the usage of each CPU core.
Also add a new -B command line flag that works like -b but waits some
cycles before dumping anything to the console.

With much help from jmc@
OK jj@ lambert@ jmc@

Revision 1.14 / (download) - annotate - [select for diffs], Tue Apr 5 07:35:32 2011 UTC (13 years, 1 month ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.13: +67 -13 lines
Diff to previous 1.13 (colored)

Add support to display numbers with thousands separators
and to switch the ifstat view to Bits/s.
This allows us to see live network throughput in units
like MBit/s, which is more practical.
OK sthen@, manpage OK jmc@, "put it in" deraadt@

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jul 19 04:41:28 2010 UTC (13 years, 10 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.12: +1 -10 lines
Diff to previous 1.12 (colored)

Remove unused function.
ok canacar@

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jul 16 05:22:48 2010 UTC (13 years, 10 months ago) by lum
Branch: MAIN
Changes since 1.11: +45 -1 lines
Diff to previous 1.11 (colored)

Make the terminal checking capability of systat better.
Checks taken from top(1) screen.c/init_termcap()
ok canacar@ sthen@ nicm@

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 12 23:22:14 2010 UTC (14 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Update to ncurses 5.7, with local changes reapplied.

This is around eight years worth of changes (previously we were around ncurses
5.2), too many to list - many bug fixes and also a few new functions.

A major bump for libcurses, libpanel, libform and libmenu.

ok deraadt

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 11 23:18:52 2009 UTC (14 years, 11 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

add missing header needed by ioctl()

ok canacar@

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jun 6 17:52:39 2009 UTC (14 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

- remove unused macro from iostat.c
- minor space nit in engine.c

ok canacar@

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 4 14:48:07 2009 UTC (14 years, 11 months ago) by canacar
Branch: MAIN
Changes since 1.7: +38 -4 lines
Diff to previous 1.7 (colored)

Plug memory leak when the terminal is resized.
Reported by Simon Bertrang, thanks.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 7 02:56:06 2008 UTC (15 years, 5 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.6: +36 -37 lines
Diff to previous 1.6 (colored)

Warning cleanup including unused variables and shadowed names

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 1 18:03:06 2008 UTC (15 years, 5 months ago) by naddy
Branch: MAIN
Changes since 1.5: +21 -1 lines
Diff to previous 1.5 (colored)

Add a function to print a floating point field and use this to fix the
SEConds field in the iostat view.
ok and help canacar@

Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 31 06:50:09 2008 UTC (15 years, 6 months ago) by canacar
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Implement start and stop commands as documented,
explicitly pass the command buffer to the command functions.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jul 22 03:00:23 2008 UTC (15 years, 10 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.3: +65 -1 lines
Diff to previous 1.3 (colored)

Add signed size printing functions, as requested by deraadt@.
Just use print_fld_ssize() for signed values.
Increase scale up to "Tera" while there.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 13 17:45:02 2008 UTC (15 years, 11 months ago) by canacar
Branch: MAIN
Changes since 1.2: +8 -1 lines
Diff to previous 1.2 (colored)

Fix size and age field printing. The fields will now be printed with units
instead of getting truncated.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jun 13 01:06:06 2008 UTC (15 years, 11 months ago) by canacar
Branch: MAIN
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored)

Do not try to access ordering if it is not defined.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 12 22:26:01 2008 UTC (15 years, 11 months ago) by canacar
Branch: MAIN

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.