mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
13 lines
253 B
Awk
Executable file
13 lines
253 B
Awk
Executable file
#!/bin/awk -f
|
|
|
|
BEGIN{
|
|
getline sysname < "/dev/sysname";
|
|
|
|
getline < "/dev/time";
|
|
sec = sprintf("%d", $3/$4);
|
|
|
|
ct = sprintf("%02d:%02d:%02d", sec%86400/3600, sec%86400%3600/60, sec%60);
|
|
printf("%s up %d days, %s\n", sysname, sec/86400, ct);
|
|
|
|
exit
|
|
}
|