mirror of https://github.com/lindes/ttyload.git
finally releasing version 0.5 -- not the curses re-write I might have
hoped for, but it has a few improvements. And I'm now licensing in something based on the ISC license, which is pretty open... should qualify this as OSS.
This commit is contained in:
parent
66aea37c27
commit
80b66b87c3
35
LICENSE
35
LICENSE
|
@ -1,25 +1,26 @@
|
|||
The following license and related info applies to ttyload and
|
||||
all of the supporting components:
|
||||
|
||||
ttyload
|
||||
Copyright 1996-2001 by David Lindes, All rights reserved.
|
||||
* ttyload *
|
||||
Copyright 1996-2008 by David Lindes, All rights reserved.
|
||||
|
||||
This is an early "release" of ttyload. You're welcome to use it
|
||||
how you will, and submit any patches you like back to me, but
|
||||
please do not redistribute it. You may tell others about it,
|
||||
and have them refer to http://www.daveltd.com/src/util/ttyload/
|
||||
to get more information and/or the latest download, but please
|
||||
don't distribute it directly.
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
I expect to release it under a different license sometime in the
|
||||
future, time TBD.
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
Note: there is absolutely no warranty of any kind on any
|
||||
software contained herein. Use at your own risk, etc.
|
||||
It is requested, without requirement, that any enhancements to this
|
||||
software be submitted back to the author, whose contact information can
|
||||
be found at the official web page for this software:
|
||||
|
||||
Thanks,
|
||||
http://www.daveltd.com/src/util/ttyload/
|
||||
|
||||
David Lindes
|
||||
|
||||
P.S. Send feedback to: <src/ttyload@daveltd.com>, or whatever
|
||||
method, if any, is given on the web page mentioned above.
|
||||
(Note: the above is a modified version of the "ISC License", as
|
||||
extracted from http://en.wikipedia.org/wiki/ISC_license 2008-09-16.)
|
||||
|
|
3
README
3
README
|
@ -26,7 +26,7 @@ And I know of no other utilities that perform quite this task.
|
|||
For a while, I only needed it on one platform, and so I simply
|
||||
recompiled it from time to time as I moved from one machine to
|
||||
another. But, eventually, I stopped having such a homogeneous
|
||||
environment, and wanted it for other platforms. But different
|
||||
environment, and wanted it for other platforms. And different
|
||||
platforms required different methods of getting data about the
|
||||
load averages... For a while, I didn't feel quite enough of a
|
||||
desire to have it elsewhere to make it work. But eventually I
|
||||
|
@ -66,6 +66,7 @@ ttyload has been shown to run on systems running, at least:
|
|||
- FreeBSD (some version or other, I'm not familiar with their
|
||||
numbering system... 4.4, I think.)
|
||||
- Solaris 2.x and later (at least 2.6 and 8)
|
||||
- Isilon OneFS
|
||||
|
||||
Feel free, if you like, to submit patches to add more platforms
|
||||
(or other versions of existing platforms), and please let me
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Copyright 1996 by David Lindes
|
||||
* all right reserved.
|
||||
*
|
||||
* Version information: $Id: ttyload.c,v 1.23 2004-07-01 19:13:13 lindes Exp $
|
||||
* Version information: $Id: ttyload.c,v 1.24 2008-09-17 02:05:11 lindes Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
|||
#define MINROWS (HEIGHTPAD + 6)
|
||||
#define MINCOLS (WIDTHPAD + 6)
|
||||
|
||||
char *c="$Id: ttyload.c,v 1.23 2004-07-01 19:13:13 lindes Exp $";
|
||||
char *c="$Id: ttyload.c,v 1.24 2008-09-17 02:05:11 lindes Exp $";
|
||||
|
||||
char strbuf[BUFSIZ],
|
||||
*optstring = "i:hvmr:c:",
|
||||
|
@ -485,7 +485,7 @@ int compute_height(thisload, maxload, height)
|
|||
if(thisload < 0)
|
||||
return(height + 1);
|
||||
|
||||
/* this is a reversal of what you might thing... the X axis
|
||||
/* this is a reversal of what you might think... the X axis
|
||||
* is really on the top of the graph, so larger heights sit
|
||||
* lower. the 'height -' part is implicitly done elsewhere.
|
||||
* (but not really ever actually done) */
|
||||
|
|
Loading…
Reference in New Issue