diff --git a/scripts/lcp_rtt_exporter b/scripts/lcp_rtt_exporter index 6fab745f..4b57d2a9 100644 --- a/scripts/lcp_rtt_exporter +++ b/scripts/lcp_rtt_exporter @@ -21,8 +21,10 @@ use List::Util qw(sum max min); my $stats = compute_statistics($data, 60); my $s = metrics($stats); + my $length = length($s); - print "Content-type: text/plain\n\n$s"; + print "Content-type: text/plain\n"; + print "Content-length: $length\n\n$s"; exit; }