private void printDoubleWithFields ( String name , String fields , double value ) { print ( METRIC_PREFIX ) ; print ( name ) ; if ( fields != null ) { print ( fields ) ; } print ( ' ' ) ; println ( decimalFormat . format ( value ) ) ; }
prints a double metric value with optional fields