You are here

function xhprof_count_format in XHProf 7

Same name and namespace in other branches
  1. 6 xhprof.inc \xhprof_count_format()
1 string reference to 'xhprof_count_format'
xhprof.inc in ./xhprof.inc

File

./xhprof.inc, line 257

Code

function xhprof_count_format($num) {
  $num = round($num, 3);
  if (round($num) == $num) {
    return number_format($num);
  }
  else {
    return number_format($num, 3);
  }
}