about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-07-24 10:19:49 +0200
committervanhauser-thc <vh@thc.org>2024-07-24 10:19:57 +0200
commit2f2ddbbd796a552ae19440075244176bb98bfb01 (patch)
tree63e8e1a71d2b02b9c0f8cf1780e2aafe71e00bab
parentba7c012427bbd91cc3e981e9b40afd69e52edcf9 (diff)
downloadafl++-2f2ddbbd796a552ae19440075244176bb98bfb01.tar.gz
fix afl-whatup time calc
-rwxr-xr-xafl-whatsup8
1 files changed, 4 insertions, 4 deletions
diff --git a/afl-whatsup b/afl-whatsup
index 19841755..6fa2dfc2 100755
--- a/afl-whatsup
+++ b/afl-whatsup
@@ -112,12 +112,12 @@ if [ -z "$NO_COLOR" ]; then
 fi
 
 PLATFORM=`uname -s`
-if [ "$PLATFORM" = "Linux" ] ; then
-  CUR_TIME=`cat /proc/uptime | awk '{printf "%.0f\n", $1}'`
-else
+#if [ "$PLATFORM" = "Linux" ] ; then
+#  CUR_TIME=`cat /proc/uptime | awk '{printf "%.0f\n", $1}'`
+#else
   # This will lead to inacurate results but will prevent the script from breaking on platforms other than Linux
   CUR_TIME=`date +%s`
-fi
+#fi
 
 TMP=`mktemp -t .afl-whatsup-XXXXXXXX` || TMP=`mktemp -p /data/local/tmp .afl-whatsup-XXXXXXXX` || TMP=`mktemp -p /data/local/tmp .afl-whatsup-XXXXXXXX` || exit 1
 trap "rm -f $TMP" 1 2 3 13 15