@@ -7,10 +7,10 @@ use warnings;
77
88use parent ' VWF::Display' ;
99
10+ use Filesys::Df;
1011use Time::Piece;
1112use Time::Seconds;
1213use System::Info;
13- use Filesys::Df;
1414use Sys::Uptime;
1515use Sys::MemInfo;
1616use Time::Piece;
@@ -34,10 +34,10 @@ sub html {
3434 }
3535
3636 # --- Server metrics using CPAN modules ---
37- my $server_metrics = get_server_metrics();
37+ my $server_metrics = $self -> get_server_metrics();
3838
3939 # --- Traffic metrics from vwf_log ---
40- my $traffic_metrics = get_traffic_metrics( $self , $vwf_log , $domain_name );
40+ my $traffic_metrics = $self -> get_traffic_metrics( $vwf_log , $domain_name );
4141
4242 # --- HTTP status breakdown for pie chart ---
4343 my $status_datapoints ;
@@ -51,8 +51,8 @@ sub html {
5151 $status_datapoints .= ' {y: ' . $status_count {$code } . " , label: \" $code \" },\n " ;
5252 }
5353
54- my $rate_24h = get_request_rate_24h( $self , $vwf_log , $domain_name );
55- my $latency_24h = get_latency_24h( $self , $vwf_log , $domain_name );
54+ my $rate_24h = $self -> get_request_rate_24h( $vwf_log , $domain_name );
55+ my $latency_24h = $self -> get_latency_24h( $vwf_log , $domain_name );
5656
5757 return $self -> SUPER::html({
5858 datapoints => $datapoints ,
@@ -234,7 +234,7 @@ sub get_latency_24h {
234234 next unless @vals ;
235235
236236 my $count = @vals ;
237- my $avg = int ( (eval (join (' +' , @vals )) || 0) / $count );
237+ my $avg = int ((eval (join (' +' , @vals )) || 0) / $count );
238238
239239 my $p95_index = int (0.95 * ($count - 1));
240240 my $p95 = $vals [$p95_index ];
0 commit comments