changeset 12143:f35125e00403 draft

<b_jonas> fetch /hackenv/bin/uptime https://hack.esolangs.org/get/bin/uptime
author HackEso <hackeso@esolangs.org>
date Sun, 17 Nov 2019 20:30:42 +0000
parents ec79f376cd1a
children b044eecae124
files bin/uptime
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bin/uptime	Sun Nov 17 20:18:33 2019 +0000
+++ b/bin/uptime	Sun Nov 17 20:30:42 2019 +0000
@@ -1,4 +1,5 @@
 #!/usr/bin/python3
+# (/usr/bin/uptime -p) is broken, so here's a reimplementation
 boottime = 1245511822
 import sys, os, time
 helpmsg = "\nUsage:\n uptime [options]\n\nOptions:\n -p, --pretty   show uptime in pretty format\n -h, --help     display this help and exit\n -s, --since    system up since\n -V, --version  output version information and exit\n\nFor more details see uptime(1)."