Changeset 376 for trunk/nagios-velvice/velvice.cgi
- Timestamp:
- Nov 4, 2018, 11:35:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nagios-velvice/velvice.cgi
r375 r376 17 17 use strict; 18 18 use warnings; 19 use version; our $VERSION = version->declare('0.10. 3');19 use version; our $VERSION = version->declare('0.10.4'); 20 20 21 21 use CGI; … … 165 165 $year += 1900; 166 166 $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', 167 my $date_sec = 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); 169 169 170 170 my $htmlpage; … … 211 211 clearInterval(refresh_interval); 212 212 refresh_interval = setInterval(refresh, refresh_sec * 1000); 213 console.log("Refresh Interval :", refresh_sec);213 console.log("Refresh Interval at $date_sec - ", refresh_sec); 214 214 document.getElementById('master-body').setAttribute("refresh", refresh_sec); 215 215 } … … 226 226 // Set the refresh() function to run every 900 seconds. 1 second would be 1000 227 227 refresh_interval = setInterval(refresh, refresh_sec * 1000); 228 console.log("Refresh Interval at $date_sec - ", refresh_sec); 228 229 } 229 230 </script>
Note: See TracChangeset
for help on using the changeset viewer.