Roxen.git / server / etc / modules / SNMP.pmod

version» Context lines:

Roxen.git/server/etc/modules/SNMP.pmod:1:   //   // SNMP helper stuff.   // - // $Id: SNMP.pmod,v 1.12 2010/05/04 13:46:56 grubba Exp $ + // $Id: SNMP.pmod,v 1.13 2010/11/25 14:06:03 grubba Exp $   //   // 2007-08-29 Henrik Grubbström   //      // Some OIDs      //! iso.organizations.dod.internet   constant INTERNET_OID = ({ 1, 3, 6, 1 });      //! iso.organizations.dod.internet.private.enterprises.roxenis
Roxen.git/server/etc/modules/SNMP.pmod:209:      //! One tick is 1/100 seconds.   class Tick   {    inherit app_integer;    constant tag = 3;    constant type_name = "TICK";    protected string _sprintf(int t)    {    if (t == 's') { -  return Roxen.short_date(time(1) - ((int)value)/100); +  return Roxen.short_date((int)(time(1) - value/100));    }    return ::_sprintf(t);    }   }      class Opaque   {    inherit app_octet_string;    constant tag = 4;    constant type_name = "OPAQUE";