Unix::S...ad_stats(3)

πŸ“¦ version 0.112, in fedora 43

πŸ’– 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 (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