Ignore:
Timestamp:
Nov 4, 2018, 11:35:20 AM (6 years ago)
Author:
g7moreau
Message:
  • Better log
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nagios-velvice/velvice.cgi

    r375 r376  
    1717use strict;
    1818use warnings;
    19 use version; our $VERSION = version->declare('0.10.3');
     19use version; our $VERSION = version->declare('0.10.4');
    2020
    2121use CGI;
     
    165165$year += 1900;
    166166$mon++;
    167 my $date_sec = nosbreak(sprintf '%04i-%02i-%02i %02i:%02i:%02i', $year, $mon, $mday, $hour, $min, $sec);
    168 my $date_min = nosbreak(sprintf '%04i-%02i-%02i %02i:%02i',      $year, $mon, $mday, $hour, $min);
     167my $date_sec = sprintf '%04i-%02i-%02i %02i:%02i:%02i', $year, $mon, $mday, $hour, $min, $sec;
     168my $date_min = nosbreak(sprintf '%04i-%02i-%02i %02i:%02i', $year, $mon, $mday, $hour, $min);
    169169
    170170my $htmlpage;
     
    211211               clearInterval(refresh_interval);
    212212               refresh_interval = setInterval(refresh, refresh_sec * 1000);
    213                console.log("Refresh Interval: ", refresh_sec);
     213               console.log("Refresh Interval at $date_sec - ", refresh_sec);
    214214               document.getElementById('master-body').setAttribute("refresh", refresh_sec);
    215215               }
     
    226226      // Set the refresh() function to run every 900 seconds. 1 second would be 1000
    227227      refresh_interval = setInterval(refresh, refresh_sec * 1000);
     228      console.log("Refresh Interval at $date_sec - ", refresh_sec);
    228229      }
    229230</script>
Note: See TracChangeset for help on using the changeset viewer.