BSD-3-Clause licensed by Sibi Prabakaran
Maintained by sibi@psibi.in

Module documentation for 0.1.1

This version can be pinned in stack with:sysinfo-0.1.1@sha256:e330bbcbc317fc79c59ef10253c15324d11d8b0f402d13948e3bb9fb1791eb4f,1418

sysinfo

Build Status

Haskell interface for the sysinfo Linux system call. This can be used to get system statistics like uptime, free memory, system load etc.

Note that the package works only on Linux system with kernel version >= 2.3.23 and uses FFI calls.

Usage

λ> import System.SysInfo
λ> val <- sysInfo
λ> either (\_ -> "sysinfo failed") show val
"SysInfo {uptime = 121149, loads = Loads {sloads = [91200,80736,82592]}, totalram = 12286611456, freeram = 967655424, sharedram = 63033344, bufferram = 838983680, totalswap = 8261726208, freeswap = 8259276800, procs = 418, totalhigh = 0, freehigh = 0, memUnit = 1}"

Changes

Version 0.1.1

  • Make it compile on non Linux platforms

Version 0.1.0.0

  • Initial version released
Depends on 1 package(full list with versions):
comments powered byDisqus