Changeset 203


Ignore:
Timestamp:
Jan 29, 2017, 6:11:48 PM (8 years ago)
Author:
g7moreau
Message:
  • Update date on map
  • Small bug when fake-ip * in ip split
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r202 r203  
    14441444         my $date = sprintf '%04i-%02i-%02i %02i:%02i', $year, $mon, $mday, $hour, $min;
    14451445
    1446          my $ip_sort = sprintf '%03i%03i%03i%03i', split m/ \. /xms, $ipv4_address;
     1446         my $ip_sort = sprintf '%03i%03i%03i%03i', split m/ \.\* /xms, $ipv4_address; # \* for fake-ip
    14471447
    14481448         my $mac_sort = sprintf '%04i-%s', 9999, $mac_address;
     
    14941494         my $date = sprintf '%04i-%02i-%02i %02i:%02i', $year,$mon,$mday,$hour,$min;
    14951495
    1496          my $ip_sort = sprintf '%03i%03i%03i%03i', split m/ \. /xms, $ipv4_address;
     1496         my $ip_sort = sprintf '%03i%03i%03i%03i', split m/ \. /xms, $ipv4_address; # \* for fake-ip
    14971497
    14981498         my $mac_sort = sprintf '%04i-%s', 9999, $mac_address;
     
    23932393   print "digraph G {\n";
    23942394   print "rankdir = LR;\n";
     2395   #print "splines=polyline;\n";
    23952396
    23962397   print "site [label = \"site\", color = black, fillcolor = gold, shape = invhouse, style = filled];\n";
     
    24022403   my $date = sprintf '%04i-%02i-%02i %02i:%02i', $year, $mon, $mday, $hour, $min;
    24032404   print "\"$date\" [ color = white, fillcolor = black, shape = polygon, sides=14, style = filled, fontcolor = white ]\n";
     2405   print "site -> \"$date\" [color = white];\n";
    24042406
    24052407   my $b=0;
Note: See TracChangeset for help on using the changeset viewer.