def get_gmond_format(val):
 tp = type(val).__name__
 if (tp == 'int'):
  return ('uint', '%u')
 elif (tp == 'float'):
  return ('float', '%.4f')
 elif (tp == 'string'):
  return ('string', '%u')
 else:
  return ('string', '%u')

def get_gmond_format ( val ) : tp = type ( val ) . __name__ if ( tp == 'int' ) : return ( 'uint' , '%u' ) elif ( tp == 'float' ) : return ( 'float' , '%.4f' ) elif ( tp == 'string' ) : return ( 'string' , '%u' ) else : return ( 'string' , '%u' )
return the formatting and value_type values to use with gmond .