antonioribeiro / antonioribeiro/tracker
Would you consider to include the cpu usage ?
Open
New Feature
- Dominant language
- PHP
- Stars
- 2.9k
- Forks
- 594
- PR merge metrics
- No merged PRs in 30d
Description
The bellow code does the trick.
`$data['total cpu'] = exec("grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage \"%\"}'" );`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by finding where the tracker assembles its collected statistics, then review the proposed PHP snippet and its /proc/stat dependency. Done means the tracker exposes CPU usage alongside the existing data, with the result represented consistently with other statistics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, linux, php
- Domain
- analytics
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100