diff options
| author | ruki <[email protected]> | 2022-07-29 00:49:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-07-29 00:49:07 +0800 |
| commit | 50af6707efc8f4831d790005cdddad4278f3a37d (patch) | |
| tree | df209654f13b65ef076a822dde7d6d5b8a009b9f /tests/modules/os/cpuinfo.lua | |
| parent | 07ef7c8da6a58bd22a4cd8dc3c80f915771c02e2 (diff) | |
add cpuinfo/meminfo tests
Diffstat (limited to 'tests/modules/os/cpuinfo.lua')
| -rw-r--r-- | tests/modules/os/cpuinfo.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/modules/os/cpuinfo.lua b/tests/modules/os/cpuinfo.lua new file mode 100644 index 000000000..1f0180739 --- /dev/null +++ b/tests/modules/os/cpuinfo.lua @@ -0,0 +1,7 @@ +function main() + print(os.cpuinfo()) + while true do + print(os.time(), os.cpuinfo("usagerate")) + os.sleep(1000) + end +end |
