4 package Audio
::MPD
::Common
::Stats
;
5 # ABSTRACT: class representing MPD stats
10 # -- public attributes
12 =attr
$stats->artists;
14 Number of artists
in the music database
.
18 Number of albums
in the music database
.
22 Number of songs
in the music database
.
26 Daemon uptime
(time since
last startup
) in seconds
.
28 =attr
$stats->playtime;
30 Time
length of music played
.
32 =attr
$stats->db_playtime;
34 Sum of all song
times in the music database
.
36 =attr
$stats->db_update;
38 Last database update
in UNIX
time.
42 has artists
=> ( is
=>'ro', isa
=>'Int', required
=>1 );
43 has albums
=> ( is
=>'ro', isa
=>'Int', required
=>1 );
44 has songs
=> ( is
=>'ro', isa
=>'Int', required
=>1 );
45 has uptime
=> ( is
=>'ro', isa
=>'Int', required
=>1 );
46 has playtime
=> ( is
=>'ro', isa
=>'Int', required
=>1 );
47 has db_playtime
=> ( is
=>'ro', isa
=>'Int', required
=>1 );
48 has db_update
=> ( is
=>'ro', isa
=>'Int', required
=>1 );
56 The MPD server maintains some general information. Those information can
57 be queried with the mpd modules. Some of those information are served to
58 you as an L<Audio::MPD::Common::Status> object.
60 An L<Audio::MPD::Common::Stats> object does B<not> update itself
61 regularly, and thus should be used immediately.
63 Note: one should B<never> ever instantiate an L<Audio::MPD::Common::Stats>
64 object directly - use the mpd modules instead.