mirror of https://github.com/mikaku/Monitorix.git
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:
parent
f981f3b0c4
commit
0234ca32d9
2
Changes
2
Changes
|
@ -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.
|
||||
|
||||
|
||||
|
|
|
@ -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*/) {
|
||||
|
|
Loading…
Reference in New Issue