Changeset 424 for trunk


Ignore:
Timestamp:
07/06/07 20:21:12 (17 years ago)
Author:
bastiaans
Message:

jobmond/jobmond.py:

  • respect gmetric type when native
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobmond/jobmond.py

    r421 r424  
    344344                        gm = Gmetric( GMETRIC_TARGET_HOST, GMETRIC_TARGET_PORT )
    345345
    346                         gm.send( str( metricname ), str( metricval ), str( self.dmax ), units )
     346                        gm.send( str( metricname ), str( metricval ), str( self.dmax ), units, valtype )
    347347
    348348                else:
     
    938938                        return 'udp'
    939939
    940         def send( self, name, value, dmax, units = '' ):
     940        def send( self, name, value, dmax, type = '', units = '' ):
    941941
    942942                if len( units ) == 0:
    943943                        units           = self.unitstr
    944 
    945                 msg             = self.makexdr( name, value, self.type, units, self.slopestr, self.tmax, dmax )
     944                if len( type ) == 0:
     945                        typestr         = self.type
     946
     947                msg             = self.makexdr( name, value, typestr, units, self.slopestr, self.tmax, dmax )
    946948
    947949                return self.socket.sendto( msg, self.hostport )
Note: See TracChangeset for help on using the changeset viewer.