ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/generic/statgrab.pl
(Generate patch)

Comparing projects/cms/source/host/generic/statgrab.pl (file contents):
Revision 1.13 by tdb, Mon Jan 22 23:21:34 2001 UTC vs.
Revision 1.15 by pjm2, Sun Jan 28 19:53:39 2001 UTC

# Line 107 | Line 107 | sub include_users() {
107  
108      # Find out all users on this machine.
109      my($users) = `$usersbin`;
110 <    my(@users) = split(/\s+/, $users);
111 <
112 <    my($users_count) = $#users + 1;
110 >    chop($users);
111 >    $users = "" unless defined $users;
112 >    my($users_count) = 0;
113 >    $users_count++ while $users =~ /\w+/g;
114      my($users_list) = $users;
115  
116      &print_pair(1, "packet.users.count", $users_count);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines