Changeset 431 for trunk/jobmond
- Timestamp:
- 07/08/07 22:58:56 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jobmond/jobmond.py
r425 r431 42 42 def processArgs( args ): 43 43 44 SHORT_L = ' hc:'45 LONG_L = [ 'help', 'config=' ]44 SHORT_L = 'p:hc:' 45 LONG_L = [ 'help', 'config=', 'pidfile=' ] 46 46 47 47 global PIDFILE … … 894 894 GMETRIC_DEFAULT_HOST = '127.0.0.1' 895 895 GMETRIC_DEFAULT_PORT = '8649' 896 GMETRIC_DEFAULT_UNITS = '' 896 897 897 898 class Gmetric: … … 920 921 921 922 self.hostport = ( host, int( port ) ) 922 self.type = GMETRIC_DEFAULT_TYPE923 self.unitstr = ''924 923 self.slopestr = 'both' 925 924 self.tmax = 60 … … 938 937 return 'udp' 939 938 940 def send( self, name, value, dmax, type = '', units = '' ):939 def send( self, name, value, dmax, typestr = '', units = '' ): 941 940 942 941 if len( units ) == 0: 943 units = self.unitstr944 if len( type ) == 0:945 typestr = self.type942 units = GMETRIC_DEFAULT_UNITS 943 if len( typestr ) == 0: 944 typestr = GMETRIC_DEFAULT_TYPE 946 945 947 946 msg = self.makexdr( name, value, typestr, units, self.slopestr, self.tmax, dmax )
Note: See TracChangeset
for help on using the changeset viewer.