mirror of https://github.com/mikaku/Monitorix.git
added new 'separated' visualization mode in 'mysql.pm' #217
This commit is contained in:
parent
5d224266e8
commit
63712884e4
12
lib/mysql.pm
12
lib/mysql.pm
|
@ -1240,10 +1240,18 @@ sub mysql_cgi {
|
|||
push(@tmpz, "LINE1:B_in#00EE00");
|
||||
if(lc($config->{netstats_in_bps}) eq "y") {
|
||||
push(@CDEF, "CDEF:B_in=in,8,*");
|
||||
push(@CDEF, "CDEF:B_out=out,8,*");
|
||||
if(lc($config->{netstats_mode} || "") eq "separated") {
|
||||
push(@CDEF, "CDEF:B_out=out,8,*,-1,*");
|
||||
} else {
|
||||
push(@CDEF, "CDEF:B_out=out,8,*");
|
||||
}
|
||||
} else {
|
||||
push(@CDEF, "CDEF:B_in=in");
|
||||
push(@CDEF, "CDEF:B_out=out");
|
||||
if(lc($config->{netstats_mode} || "") eq "separated") {
|
||||
push(@CDEF, "CDEF:B_out=out,-1,*");
|
||||
} else {
|
||||
push(@CDEF, "CDEF:B_out=out");
|
||||
}
|
||||
}
|
||||
if(lc($config->{show_gaps}) eq "y") {
|
||||
push(@tmp, "AREA:wrongdata#$colors->{gap}:");
|
||||
|
|
Loading…
Reference in New Issue