New file.

1998-10-10  Martin Baulig  <martin@home-of-linux.org>

	* typemap: New file.

	* perl.awk: Make it work with the new format of `features.def'.

	* Makefile.PL.in: Added typemap.

	* Libgtop.pm (new): New function.
This commit is contained in:
Martin Baulig
1998-10-10 17:23:52 +00:00
committed by Martin Baulig
parent 8014f2590b
commit 3af2e87c77
6 changed files with 116 additions and 24 deletions

View File

@@ -6,8 +6,11 @@ use blib;
use strict;
use Libgtop;
print "CPU Usage: ".join (':', Libgtop::cpu)."\n";
print "Memory Usage: ".join (':', Libgtop::mem)."\n";
print "Swap Usage: ".join (':', Libgtop::swap)."\n";
my $server = Libgtop->new;
print "CPU Usage: ".join (':', $server->cpu)."\n";
print "Memory Usage: ".join (':', $server->mem)."\n";
print "Swap Usage: ".join (':', $server->swap)."\n";
print "Process List: ".join (' ', $server->proclist (0,0))."\n";