Re: sysUptime uses gettimeofday

Magnus Fromreide <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Wed, Mar 28, 2018 at 12:49:48PM +0530, Pushpa Thimmaiah wrote:
> Hi All,
> 
> I believed that sysUpTime is counter that increments  every seconds. But In
> net-snmp code ,
>  sysUpTime being calculated as difference between 'snmpd-starttime' and
> 'current time' .
> 
> I would like to know reason for sysUpTime been calculated as difference in
> time instead of incremental-counter.
> Is there any constraints ?

sysUpTime is expressed in centiseconds.
It is assumed that most snmp daemons ain't polled 100 times/s so doing it
with increments would be inefficient as well as bad for accurancy.

/MF

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.