crstat

Version, currently main branch1 version
  • main branchlatestSep 13, 2025

github.com/eightuponatime/crstat

No description declared in shard.yml.

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  crstat:
    github: eightuponatime/crstat
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
>= 1.17.0
License
MIT
Author
maxim satanov
Target
  • crstat from src/crstat.cr

Dependencies

Runtime Dependencies

  • admiral*github: jwaldrip/admiral.cr

README

crstat

TODO: Write a description here

Installation

TODO: Write installation instructions here

Usage

TODO: Write usage instructions here

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/your-github-user/crstat/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

TODO

CPU

  • [x] Calculate CPU thread load from /proc/stat
  • [x] Get CPU model name from /proc/cpuinfo
  • [x] Get CPU temperature from /sys/class/thermal/thermal_zone0/temp

Memory

  • [x] Get memory and swap information from /proc/meminfo
  • [x] Collect information about user's real disks (excluding loop devices, squashfs, and vfat) from /proc/self/mountinfo, including filesystem name and mount point
  • [ ] Retrieve disk usage statistics (total, used, available space) using statvfs with LibC

Contributors