Changeset 321


Ignore:
Timestamp:
Jul 20, 2018, 1:45:18 PM (6 years ago)
Author:
g7moreau
Message:
  • Better constant on top
File:
1 edited

Legend:

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

    r320 r321  
    2929my $cgi_path        = $cgi_script_name =~ s{/[^/]+\.cgi$}{}r;
    3030undef $query;
     31
     32my %STATUS_DB = (
     33   CRITICAL => {id => 3, color => '#F88888'},
     34   WARNING  => {id => 2, color => '#FFFF00'},
     35   PENDING  => {id => 1, color => '#E0E0E0'},
     36   );
    3137
    3238my $config = {};
     
    6672sub alertcolor {
    6773   my ($status, $downtime) = @_;
    68 
    69    my %STATUS_DB = (
    70       CRITICAL => {id => 3, color => '#F88888'}
    71       WARNING  => {id => 2, color => '#FFFF00'}
    72       PENDING  => {id => 1, color => '#E0E0E0'}
    73       );
    7474
    7575   my $color = '#0000FF';
Note: See TracChangeset for help on using the changeset viewer.