Ignore:
Timestamp:
Nov 4, 2018, 8:08:17 PM (6 years ago)
Author:
g7moreau
Message:
  • Update consolelog
File:
1 edited

Legend:

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

    r377 r378  
    1717use strict;
    1818use warnings;
    19 use version; our $VERSION = version->declare('0.10.5');
     19use version; our $VERSION = version->declare('0.10.6');
    2020
    2121use CGI;
     
    202202         if (req.status == 200) {
    203203            document.getElementById('master-body').innerHTML = req.responseXML.getElementById('master-body').innerHTML;
    204             console.log("Update Page at ", datenow.toLocaleTimeString());
     204            console.log("Update Page at", datenow.toLocaleTimeString());
    205205
    206206            refresh_next = req.responseXML.getElementById('master-body').getAttribute("refresh");
     
    212212               clearInterval(refresh_interval);
    213213               refresh_interval = setInterval(refresh, refresh_sec * 1000);
    214                console.log("Update at ", datenow.toLocaleTimeString(), " Refresh Interval: ", refresh_sec);
     214               console.log("Update at", datenow.toLocaleTimeString(), "Refresh Interval:", refresh_sec);
    215215               document.getElementById('master-body').setAttribute("refresh", refresh_sec);
    216216               }
     
    227227      // Set the refresh() function to run every 900 seconds. 1 second would be 1000
    228228      refresh_interval = setInterval(refresh, refresh_sec * 1000);
    229       console.log("Start Refresh Interval: ", refresh_sec);
     229      console.log("Start Refresh Interval:", refresh_sec);
    230230      }
    231231</script>
Note: See TracChangeset for help on using the changeset viewer.