New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

linux-kstat

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linux-kstat

  • 0.2.7
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Ruby

Description

A Ruby library for gathering Linux kernel statistics out of /proc/stat.

Installation

gem install linux-kstat

Adding the trusted cert

gem cert --add <(curl -Ls https://raw.githubusercontent.com/djberg96/linux-kstat/main/certs/djberg96_pub.pem)

Bundler

If you have trouble install this gem via bundler, please try this:

bundle config specific_platform true

Then attempt to install again.

Synopsis

# require 'linux-kstat' will also work
require 'linux/kstat'

kstat = Linux::Kstat.new

p kstat[:cpu]
p kstat[:procs_running]

Details

The values for most of the keys are a single numeric value. However, in the case of "cpu" keys, the result is a 7 element hash of numeric values. In the case of the "intr" key, the value is an array containing the list of interrupts.

Information about /proc/stat

See http://www.linuxhowtos.org/System/procstat.htm for more information about the meaning of each of the fields.

Known Bugs

None known. Please report any bugs on the github project page.

http://www.github.com/djberg96/linux-kstat

License

Apache-2.0

(C) 2003-2020 Daniel J. Berger All Rights Reserved.`

Warranty

This package is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.

Author

Daniel J. Berger

FAQs

Package last updated on 20 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc