---
name: "Audio::MPD::Common::Stats"
section: "3pm"
platform: "linux"
package: "libaudio-mpd-common-perl"
version: "2.003-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Audio::MPD::Common::Stats"
---

# Audio::MPD::Common::Stats(3pm)

class representing MPD stats

## NAME

Audio::MPD::Common::Stats - class representing MPD stats

## VERSION

version 2.003

## DESCRIPTION

The MPD server maintains some general information. Those information can be queried with the mpd modules. Some of those information are served to you as an Audio::MPD::Common::Stats object.

An Audio::MPD::Common::Stats object does **not** update itself regularly, and thus should be used immediately.

Note: one should **never** ever instantiate an Audio::MPD::Common::Stats object directly - use the mpd modules instead.

## ATTRIBUTES

### $stats-\>artists;

Number of artists in the music database.

### $stats-\>albums;

Number of albums in the music database.

### $stats-\>songs;

Number of songs in the music database.

### $stats-\>uptime;

Daemon uptime (time since last startup) in seconds.

### $stats-\>playtime;

Time length of music played.

### $stats-\>db\_playtime;

Sum of all song times in the music database.

### $stats-\>db\_update;

Last database update in UNIX time.

## AUTHOR

Jerome Quelin

## COPYRIGHT AND LICENSE

This software is copyright (c) 2007 by Jerome Quelin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
