summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
author諏訪子 <suwako@076.moe>2024-06-18 13:39:02 +0900
committer諏訪子 <suwako@076.moe>2024-06-18 13:39:02 +0900
commit7effecbcd3fd8869d32448d6ae6b5f1ccb0efe08 (patch)
tree009536efa7d2342eacb72517f9af24a86b4f0ecd /main.c
parente09858229410af502ff0b0b3ce000d0495641353 (diff)
起動時間とCPU
Diffstat (limited to 'main.c')
-rw-r--r--main.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/main.c b/main.c
index b1aede5..3cb7faf 100644
--- a/main.c
+++ b/main.c
@@ -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;