#!/bin/bash
source $HOME/.gamerc

# 取得 CPU 數量
cpu_count=$(grep -c ^processor /proc/cpuinfo)

# 取得 Memory 總大小 (MB)
mem_total=$(free -m | awk '/^Mem:/ {print $2}')

# 取得 /dev/sda1 硬碟大小
hdd_size=$(df -hl | awk '/sda1 / {print $2}')

# 輸出結果
echo "================="
echo "// $HOST_NAME"
echo "CPU: ${cpu_count}"
echo "Memory: ${mem_total}"
echo "HDD: ${hdd_size}"
echo "================="
