Audio:...::Stats(3pm)

πŸ“¦
version 2.003 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ Audio::MPD::Common::Stats β€” the vibe check on ur MPD server ✨

okay so bestie, this is a page from the User Contributed Perl Documentation section, and it's literally called Audio::MPD::Common::Stats (man page name Audio:...::Stats(3pm)). sit down, grab a strawberry, let's get into it πŸ“


πŸ’– NAME πŸ’–

Audio::MPD::Common::Stats β€” a whole class that represents MPD stats. that's it, that's the job. πŸ‘‘


🌸 VERSION 🌸

version 2.003 β€” vintage but iconic, we respect the elders 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so the MPD server keeps track of some general information about itself. like, it's got receipts. those bits of info can be queried with the mpd modules, and some of them get served to you as an Audio::MPD::Common::Stats object. cute, right?

but listen β€” an Audio::MPD::Common::Stats object does not update itself regularly. it's giving "screenshot of a moment", not "live stream". so you should use it immediately. don't leave it sitting in a variable like a leftover smoothie. it will not refresh for you, no cap.

Note: one should never ever instantiate an Audio::MPD::Common::Stats object directly β€” use the mpd modules instead. like, do not do it. i'm serious. bestie. no. πŸ™ˆ

πŸŽ€ ATTRIBUTES πŸŽ€

$stats->artists;

Number of artists in the music database. that's a lot of main characters πŸ’…

$stats->albums;

Number of albums in the music database. yes queen, count them all πŸ‘‘

$stats->songs;

Number of songs in the music database. the discography is thriving πŸ”₯

$stats->uptime;

Daemon uptime (time since last startup) in seconds. how long has this baby been awake. no sleep, all grind ⭐

$stats->playtime;

Time length of music played. literally the amount of music juice poured out of this thing 🎡

$stats->db_playtime;

Sum of all song times in the music database. not what's been played β€” the total duration of everything in there. different vibe, don't mix them up 🧚

$stats->db_update;

Last database update in UNIX time. when did this db last get a glow-up 🌈


πŸ’œ AUTHOR πŸ’œ

Jerome Quelin β€” the original author, an absolute legend for this 🫑


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. slay, legally speaking πŸ’–


okay that's the whole page bestie, go forth and read ur stats responsibly ✨ this was page Audio:...::Stats(3pm) from perl v5.40.1, dated 2025-04-11 β€” mwah, bye πŸŽ€

πŸ“¦ where this page comes from