Unix::S...ad_stats(3)
π Unix::S...ad_stats(3) π
okay so bestie, you're looking at the User Contributed Perl Documentation for this one. Grab a boba, sit down, we're doing load averages today. π¦
β¨ NAME β¨
Unix::Statgrab::sg_load_stats β it's a container for libstatgrab load average statistics. that's the whole vibe. π
πΈ DESCRIPTION πΈ
Unix::Statgrab::sg_load_stats is a Perl package name that gives you accessors into the bundled libstatgrab sg_load_stats <http://www.i-scream.org/libstatgrab/docs/sg_get_load_stats.3.html> load average statistics. it's giving "everything you ever wanted to know about your load averages, but make it Perl." β¨
π METHODS π
π nentries
Returns the number of entries in the container. that's it. that's the method. π
π systime
Returns the seconds since Epoch β that's 0:00:00 on January, 1st 1970, bestie, the classic β of the time measure the load average statistics. π°οΈ
π as_list
Deprecated alias of fetchall_hash. it's lowkey retired, but it's still here for the girlies running old code. use the new one. π
π fetchall_hash
Returns all records from sg_load_stats <http://www.i-scream.org/libstatgrab/docs/sg_get_load_stats.3.html> container as a list of hashes, each one containing each datum name as key and the datum as value. key/value slay. π₯
π fetchall_array
Returns all records from sg_load_stats <http://www.i-scream.org/libstatgrab/docs/sg_get_load_stats.3.html> container as a list of arrays containing the values in following order:
(min1 min5 min15 systime)
in that order, without leading headline. no header, just vibes. π«Ά
π fetchall_table
Returns all records from sg_load_stats <http://www.i-scream.org/libstatgrab/docs/sg_get_load_stats.3.html> container as a list of arrays containing the values in following order:
(min1 min5 min15 systime)
in that order, including leading headline. so basically the same as above but with a little title card, main character energy. π
π fetchrow_arrayref($row = 0)
Returns one row as array containing values as above. one row, one array, defaults to $row = 0 so you get the first one automatically. π
π fetchall_arrayref
Returns all records from sg_load_stats <http://www.i-scream.org/libstatgrab/docs/sg_get_load_stats.3.html> container as an array of arrays without header. nested arrays, no headline, iconic. β¨
π fetchrow_hashref($row = 0)
Returns one row as hash containing { min1 => $self.min1($row), min5 => ... }. it's the hashref version of the row grab, defaulting to $row = 0. π
π fetchall_hashref
Returns all records from sg_load_stats <http://www.i-scream.org/libstatgrab/docs/sg_get_load_stats.3.html> container as an array of hashes. every record, hashed, no cap. π
π colnames
Returns list of column names: (min1 min5 min15 systime). the receipts. π
π min1
Load average of the last minute. β±οΈ
π min5
Load average of the last 5 minutes. β±οΈ
π min15
Load average of the last 15 minutes. β±οΈ
π AUTHOR π
Jens Rehsack, <rehsack AT cpan.org> β shoutout to the author, absolute legend. π
π COPYRIGHT AND LICENSE π
Copyright (C) 2012-2018 by Jens Rehsack
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
fr fr, it's LGPL 2.1 or later β respect the license bestie, it's not optional. π
and that's the whole page, we ate and left no crumbs π
okay so this was written for perl v5.42.0 and the page is dated 2025-07-25. mwah, bye bestie! πβ¨π¦πΈπ«Ά
π¦ where this page comes from
- fedora 43: perl-Unix-Statgrab 0.112-27.fc43 Β· (LGPL-2.1-or-later AND (GPL-1.0-or-later OR Artistic-1.0-Perl))
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms