Previously, Igor Kovalenko wrote in qdn.public.qnxrtp.applications:
I’m announcing new utility which many people will probably find useful. Some
might just love it I think, especially those used to good system tools
available in other systems > > Besides being directly useful, its source will
show how to do some rather obscure stuff in Neutrino.
But enough words, you can find all details at the web page. There are some
screenshots too. Currently it is published at
http://members.home.com/kovalenko/software/spin.html
I can’t express how pleased I’m to publish this baby, it was my obsession
for quite a few sleepless nights. You’ll find details about license at the
web page too, but in short this is ‘postcard-ware’ so don’t hesitate to send
some >
This is wonderful. I’ve been missing sysmon - hence my little hack to
put CPU usage in a window. Spin is much more useful. And, for
every good program, there comes a patch. This one removes the update
flicker on the screen, and stops an error message from messing up the
screen when run as non-root.
Thanks, Igor.
Andrew
— spin.c.orig Fri Mar 16 08:46:00 2001
+++ spin.c Fri Mar 16 09:04:02 2001
@@ -223,7 +223,7 @@
Clear counters for displayed items
*/
p_count = 0, t_count = 0, rl_count = 0, re_count = 0, f_count = 0, se_count = 0, sl_count = 0;
/*
Part I. Update current time and uptime every second.
@@ -765,7 +765,12 @@
swap_stat_msg.type = _MEM_SWAP;
swap_stat_msg.subtype = _MEM_SWAP_STAT;
if (MsgSend( scoid, &swap_stat_msg, sizeof swap_stat_msg, &swap_stat_reply, sizeof swap_stat_reply ) < 0)
-
{
-
char tbuf[128];
-
sprintf (tbuf, "Error: MsgSend: %s (are you root?)",
-
strerror(errno));
-
mvaddstr(rows - HELPLINE - 1, 0, tbuf);
-
}
else if (swap_stat_reply.total)
{
swap_total = swap_stat_reply.total;