Ronald
fc52839154
Rename package to avoid conflict with core:sys/info library
1 year ago
Ronald
1e9fd20f5d
Fix memory leak in get_hostname()
1 year ago
Ronald
1196f36879
Fix get_hostname function
2 years ago
Ronald
78549093e1
Use base:runtime now that core:runtime is deprecated
2 years ago
Ronald
f5f649ceec
Updated function to get hostname
2 years ago
Ronald1985
ba1b1b8335
Adding types files. Fixing previous commits with process and disk
...
procudures.
These are required by previous commits.
2 years ago
Ronald1985
5674011460
Started to work on process functions.
...
These aren't complete, but adding them now so they can be used.
As currently only thing to do is ensure we get CPU and memory usage for
a process.
2 years ago
Ronald1985
740b4d97b8
Adding procedure to get uptime in seconds
2 years ago
Ronald1985
665a0ae97c
Adding first disk and partition procedures
2 years ago
Ronald1985
3841b9c4df
Updated hostname function, also fix previous commit.
...
Broke read_entire_file_from_handle function in previous commit fix that.
2 years ago
Ronald1985
d51f2c6e2f
Ensure that certain functions are private
2 years ago
Ronald1985
e854b430aa
Updated cpu_usage procedure
...
Changed sleep from 1s to 200 milliseconds inside get_cpu_usage_perc
procudure, to make it more accurate
2 years ago
Ronald1985
4dc1f38416
Added get_cpu_name_and_socket_number procedure
...
This function needs work, added it now for another project
2 years ago
Ronald1985
c3b32ea350
Small refactor to ensure all CPU functions are together
2 years ago
Ronald1985
fda815bc2b
Small refactor to ensure all CPU functions are together
2 years ago
Ronald1985
fd7f273290
Added __ prefix to get_key function used in parse_meminfo
2 years ago
Ronald1985
7d7e75ee82
Updated get_hostname function
...
Ensure that the returned string doesn't end with a '\n' character
2 years ago
Ronald1985
b67c817fa3
Added __ prefix to internal file functions
2 years ago
Ronald1985
608eadf5e2
Changed the style for the foreign block
2 years ago
Ronald1985
87d608cdf4
Finished functions for getting information regarding disk usage
3 years ago
Ronald1985
a14bacbb50
Fixed get_cpu_usage_perc(), continued working on storage functions
...
get_mountpoint_total_gb is still a working in progress, function causes
segmentation fault, still working out why
3 years ago
Ronald1985
9033c1bf09
Started working on implementing functions related to storage
3 years ago
Ronald1985
9c7b6e97eb
Added functions to get hostname, cpu cores and usage, and ram usage
3 years ago
Ronald1985
6f823901fe
Make this more library like, remove main function, change package
...
declaration.
3 years ago
Ronald1985
4ebbdf88bb
Updated indentation and styling so that it's consistant
4 years ago
Ronald1985
fa8fc9e199
Added function to parse cpuinfo
...
Also removed before function, not needed for a library for getting
system stats
Also removed named returns, might add them back, need to find what the
current standard is for Odin
4 years ago
Ronald1985
bd96c32483
Moved the basic idea of this repo to be a library for getting system information
4 years ago
Ronald1985
b068d5e8a5
Adding this to a git repository
4 years ago