Skip to content
Snippets Groups Projects
Commit 0d4c13af authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

oprava neciselneho argumentu pro funkci sprintf v promenne

parent c181411d
No related branches found
No related tags found
No related merge requests found
...@@ -46,8 +46,7 @@ switch (int(rand(2) + 0.5)) { ...@@ -46,8 +46,7 @@ switch (int(rand(2) + 0.5)) {
case 2 { $service = 'HoneyScan'; } case 2 { $service = 'HoneyScan'; }
} }
my $local_detected = time(); my $detected = DateTime->from_epoch(epoch => time());
my $detected = DateTime->from_epoch(epoch => $local_detected);
my $type = ""; my $type = "";
switch (int(rand(9) + 0.5)) { switch (int(rand(9) + 0.5)) {
...@@ -106,7 +105,7 @@ switch (int(rand(1) + 0.5)) { ...@@ -106,7 +105,7 @@ switch (int(rand(1) + 0.5)) {
my @event = ( my @event = (
$service, # $service $service, # $service
$detected, # $detected "$detected", # $detected
$type, # $type $type, # $type
$source_type, # $source_type $source_type, # $source_type
$source, # $source $source, # $source
......
...@@ -46,10 +46,11 @@ use DateTime; ...@@ -46,10 +46,11 @@ use DateTime;
# This should be handled by detection application. # This should be handled by detection application.
my $local_detected = time(); my $local_detected = DateTime->from_epoch(epoch => time());
my $service = "ScanDetector"; my $service = "ScanDetector";
my $detected = DateTime->from_epoch(epoch => $local_detected); my $detected = "$local_detected";
my $type = "portscan"; my $type = "portscan";
my $source_type = "IP"; my $source_type = "IP";
my $source = "123.123.123.123"; my $source = "123.123.123.123";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment