Changeset 424 for trunk/jobmond
- Timestamp:
- 07/06/07 20:21:12 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jobmond/jobmond.py
r421 r424 344 344 gm = Gmetric( GMETRIC_TARGET_HOST, GMETRIC_TARGET_PORT ) 345 345 346 gm.send( str( metricname ), str( metricval ), str( self.dmax ), units )346 gm.send( str( metricname ), str( metricval ), str( self.dmax ), units, valtype ) 347 347 348 348 else: … … 938 938 return 'udp' 939 939 940 def send( self, name, value, dmax, units = '' ):940 def send( self, name, value, dmax, type = '', units = '' ): 941 941 942 942 if len( units ) == 0: 943 943 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 ) 946 948 947 949 return self.socket.sendto( msg, self.hostport )
Note: See TracChangeset
for help on using the changeset viewer.