Deal with whitespace from the hostname command
authorSteve McIntyre <steve@einval.com>
Mon, 29 Oct 2018 17:54:02 +0000 (17:54 +0000)
committerSteve McIntyre <steve@einval.com>
Mon, 29 Oct 2018 17:54:02 +0000 (17:54 +0000)
bin/analyze_results

index dc0a2af..6f6a6b5 100755 (executable)
@@ -477,6 +477,7 @@ $time_end = time();
 $time_taken = $time_end - $time_start;
 $date = strftime "%a %b %e %H:%M:%S %Z %Y", localtime;
 $hostname = `hostname`;
+chomp $hostname;
 
 print "<hr>\n";
 print "<p>Log analysis generated on $hostname, $date.\n";