| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WWW::Opentracker::Stats::Mode::TPBS; |
|
2
|
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
24790
|
use strict; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
89
|
|
|
4
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
73
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
2
|
|
|
|
|
141
|
use parent qw/ |
|
7
|
|
|
|
|
|
|
WWW::Opentracker::Stats::Mode |
|
8
|
|
|
|
|
|
|
Class::Accessor::Fast |
|
9
|
2
|
|
|
2
|
|
850
|
/; |
|
|
2
|
|
|
|
|
335
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
2408
|
use WWW::Opentracker::Stats::Mode::TPBS::Bencode; |
|
|
2
|
|
|
|
|
9
|
|
|
|
2
|
|
|
|
|
416
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
__PACKAGE__->_format('ben'); |
|
14
|
|
|
|
|
|
|
__PACKAGE__->_mode('tpbs'); |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw/_stats/); |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 NAME |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
WWW::Opentracker::Stats::Mode::TPBS |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Parses the TPBS statistics from opentracker. |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 METHODS |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head2 parse_stats |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Args: $self, $payload |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Decodes the bencoded payload data retrieved from the TPBS statistics |
|
34
|
|
|
|
|
|
|
of opentracker. |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=cut |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub parse_stats { |
|
39
|
0
|
|
|
0
|
1
|
|
my ($self, $payload) = @_; |
|
40
|
|
|
|
|
|
|
|
|
41
|
0
|
|
|
|
|
|
return WWW::Opentracker::Stats::Mode::TPBS::Bencode->decode_stats($payload); |
|
42
|
|
|
|
|
|
|
} |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 SEE ALSO |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
L, |
|
48
|
|
|
|
|
|
|
L |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 AUTHOR |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Knut-Olav Hoven, Eknutolav@gmail.comE |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Copyright (C) 2009 by Knut-Olav Hoven |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
|
59
|
|
|
|
|
|
|
it under the same terms as Perl itself, either Perl version 5.8.8 or, |
|
60
|
|
|
|
|
|
|
at your option, any later version of Perl 5 you may have available. |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
1; |
|
66
|
|
|
|
|
|
|
|