if (!$disable_connection && $connection_info{count}) {
print $fh "Total number of connections: $connection_info{count}\n";
}
- if (!$disable_hourly) {
+ if (!$disable_hourly && $overall_stat{'queries_number'}) {
print $fh qq{
- Hourly statistics ----------------------------------------------------
<a href="#OverallStatsReport">Overall statistics</a> |
};
if (!$error_only) {
- if (!$disable_hourly) {
+ if (!$disable_hourly && $overall_stat{'queries_number'}) {
print $fh qq{<a href="#HourlyStatsReport">Hourly statistics</a> | };
}
if (!$disable_type && !$log_duration) {
<li><a href="#top">^ Back to top</a></li><li><a href="#OverallStatsReport">Overall statistics</a></li>
};
if (!$error_only) {
- if (!$disable_hourly) {
+ if (!$disable_hourly && $overall_stat{'queries_number'}) {
print $fh qq{<li><a href="#HourlyStatsReport">Hourly statistics</a></li>};
}
if (!$disable_type && !$log_duration) {
</div>
};
- if (!$disable_hourly) {
+ if (!$disable_hourly && $overall_stat{'queries_number'}) {
print $fh qq{
<h2 id="HourlyStatsReport">Hourly statistics <a href="#top" title="Back to top">^</a></h2>