5 lines
110 B
Bash
Executable File
5 lines
110 B
Bash
Executable File
#!/bin/bash
|
|
s=$(cut -d. -f1 /proc/uptime)
|
|
h=$((s / 3600))
|
|
m=$(((s % 3600) / 60))
|
|
printf "%02d:%02dh" "$h" "$m" |