Changeset 385


Ignore:
Timestamp:
Jan 4, 2018, 5:32:31 PM (6 years ago)
Author:
g7moreau
Message:
  • Decrement more timestamps
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r384 r385  
    15781578
    15791579   if (not $ip or not $mac or not $net) {
    1580       print {*STDERR} "Error: mandatory parameter --ip $ip\n"       if not $ip;
    1581       print {*STDERR} "Error: mandatory parameter --mac $mac\n"     if not $mac;
    1582       print {*STDERR} "Error: mandatory parameter --network $net\n" if not $net;
     1580      print {*STDERR} "Error: mandatory parameter --ip\n"      if not $ip;
     1581      print {*STDERR} "Error: mandatory parameter --mac\n"     if not $mac;
     1582      print {*STDERR} "Error: mandatory parameter --network\n" if not $net;
    15831583      print {*STDERR} "\n";
    15841584      $CMD_DB{'help'}->();
     
    16261626      }
    16271627
    1628    $timestamp--; # Just decrement one second to be oldier
     1628   # default:
     1629   #  days-before-alert: 15
     1630
     1631   $timestamp -= 15 * 24 * 3600 + 1; # Just decrement one second to be oldier
    16291632
    16301633   $computerdb->{$ip} = {
Note: See TracChangeset for help on using the changeset viewer.