This is a discussion on RE: problem with hrSystemNumUsers within the SNMP Coders forums, part of the Networking and Network Related category; > On Thu, 2005-08-18 at 13:24 +0530, Naganarasimha wrote: >=20 > > My OS on my ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> On Thu, 2005-08-18 at 13:24 +0530, Naganarasimha wrote:
>=20 > > My OS on my comp is windows 2000 and I tried the same in=20 > suse linux it=20 > > gives one gnome but 2 in KDE >=20 > > So can some one explain why is it (hrSystemNumUsers ) having more=20 > > value then actually what it has >=20 >=20 > This value is calculated differently on Windows- and=20 > Unix-based systems. > Under Windows, it uses the call NetWkstaGetInfo(), and takes=20 > the value of the field wki102_logged_on_users. From the MSDN=20 > documentation: >=20 > wki102_logged_on_users > Specifies the number of users who are logged on to the > local computer. >=20 > I've no idea why this might be returning '2' instead of '1'. This function will return 2 because the "SYSTEM" user for the various Windows-Services is also logged in. Regards, Bernhard ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |