Changeset 291


Ignore:
Timestamp:
Jul 16, 2018, 8:10:56 PM (6 years ago)
Author:
g7moreau
Message:
  • Better text align and color
Location:
trunk/nagios-velvice
Files:
2 edited

Legend:

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

    r290 r291  
    1515use strict;
    1616use warnings;
    17 use version; our $VERSION = version->declare('0.8.8');
     17use version; our $VERSION = version->declare('0.8.9');
    1818
    1919use CGI;
     
    210210            ) {
    211211         $now++;
    212          my $interval = $srv->next_check() - $srv->last_check() || 300;
     212         my $interval = $srv->next_check() - $srv->last_check() || 300; # 5 * 60 = 300
    213213         $interval =  240 if $interval <  240;
    214214         $interval = 3000 if $interval > 3000;
    215          my $future = $now + 20 + int(rand($interval - 20)); # 5 * 60 = 300
     215         my $future = $now + 20 + int(rand($interval - 20));
    216216
    217217         $htmlpage .= "  <td class='checking'>" . ($future - $now) . "</td>\n";
  • trunk/nagios-velvice/velvice.css

    r290 r291  
    9797
    9898td.checking {
    99    background-color: red;
     99   background-color: #EB7239;
    100100   border-radius:    0ex 2ex 2ex 0ex;
    101101   color:            white;
     102   font-size:        x-small;
     103   font-weight:      bold;
    102104   padding:          0ex 0.8ex 0ex 0.8ex;
     105   text-align:       right;
    103106   }
    104107
Note: See TracChangeset for help on using the changeset viewer.