Skip to content

Commit

Permalink
Merge pull request #3 from pilif/average-unit-fix
Browse files Browse the repository at this point in the history
phpfpm_average: emit value in correct unit
  • Loading branch information
hermzz committed Jun 28, 2011
2 parents 75959c6 + 6db2182 commit 6590ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpfpm_average
Expand Up @@ -35,5 +35,5 @@ exit 0
fi

echo -n "php_average.value "
ps awwwux | grep $PHP_BIN | grep -v grep | grep -v master | awk '{total_mem = $6 + total_mem; total_proc++} END{printf("%d\n", total_mem / total_proc)}'
ps awwwux | grep $PHP_BIN | grep -v grep | grep -v master | awk '{total_mem = $6 * 1024 + total_mem; total_proc++} END{printf("%d\n", total_mem / total_proc)}'

0 comments on commit 6590ec4

Please sign in to comment.