Skip to content

Commit 25550c3

Browse files
committed
Make the title of the graph the complete query
1 parent 498c685 commit 25550c3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

benchable.pl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ package Benchable;
2525
use parent 'Perl6IRCBotable';
2626

2727
use Cwd qw(cwd abs_path);
28+
use Encode qw(encode_utf8 decode_utf8);
2829
use File::Temp qw(tempfile tempdir);
2930
use List::Util qw(min);
3031
use Chart::Gnuplot;
@@ -96,7 +97,12 @@ sub process_message {
9697
my ($gfh, $gfilename) = tempfile(SUFFIX => '.svg', UNLINK => 1);
9798
my $chart = Chart::Gnuplot->new(
9899
output => $gfilename,
99-
terminal => 'svg mousing',
100+
encoding => 'utf8',
101+
title => {
102+
text => encode_utf8($body =~ s/"/\\"/g),
103+
enhanced => 'off',
104+
},
105+
# terminal => 'svg mousing',
100106
xlabel => 'Commits',
101107
ylabel => 'Seconds',
102108
xtics => { labels => [map { "'$commits[$_]' $_" } 0..$#commits], },

0 commit comments

Comments
 (0)