diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-18 13:39:02 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-18 13:39:02 +0900 |
commit | 7effecbcd3fd8869d32448d6ae6b5f1ccb0efe08 (patch) | |
tree | 009536efa7d2342eacb72517f9af24a86b4f0ecd /main.c | |
parent | e09858229410af502ff0b0b3ce000d0495641353 (diff) |
起動時間とCPU
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -5,9 +5,11 @@ #include "src/user.h" #include "src/os.h" #include "src/host.h" +#include "src/uptime.h" #if defined(__linux__) #include "src/distro.h" #endif +#include "src/cpu.h" #include "src/memory.h" const char *sofname = "farfetch"; @@ -37,20 +39,27 @@ int main() { display_host_model(); printf("\n"); + printf("Uptime: "); + display_days(); + printf(", "); + display_time(); + printf("\n"); + + printf("CPU: "); + display_cpu(); + printf("\n"); + printf("Memory: "); display_memory(); printf("\n"); // TODO: // * ロゴ - // * カーネル(LinuxとIllumosのみ) - // * 起動時間 // * パッケージ // * libc // * シェル // * 解像度 // * 端末 - // * CPU // * GPU // * ストレージ return 0; |