fixed the requests value in the 'nginx' graph. Now it honours the label to show the value per second, instead of per minute

This commit is contained in:
Jordi Sanfeliu 2013-11-28 11:12:09 +01:00
parent f981f3b0c4
commit 0234ca32d9
2 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,8 @@
[#30]
(thanks to Jacob Amey, jamey AT securityinspection.com for pointing this out)
- Fixed a typo in monitorix.service. [#32]
- Fixed the requests value in the 'nginx' graph. Now it honours the label to
show the value per second, instead of per minute.
- Small fixes and typos.

View File

@ -160,6 +160,7 @@ sub nginx_update {
if(/^\s+(\d+)\s+(\d+)\s+(\d+)\s*/) {
$reqs = $3 - ($config->{nginx_hist}->{'requests'} || 0);
$reqs = 0 unless $reqs != $3;
$reqs /= 60;
$config->{nginx_hist}->{'requests'} = $3;
}
if(/^Reading:\s+(\d+).*Writing:\s+(\d+).*Waiting:\s+(\d+)\s*/) {