From ed8a0b7d51607ecbfabce1d084dad4b5a1dd7a20 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Fri, 10 Feb 2012 09:47:09 +0800 Subject: [PATCH] icarus-miner: record time on u.log and export to webserver ROUTER_IP/u.log --- icarus-miner/data/root/scripts/icarus_monitor.sh | 1 + icarus-miner/data/root/scripts/u.log | 1 + icarus-miner/data/www/u.log | 1 + 3 files changed, 3 insertions(+) create mode 100644 icarus-miner/data/root/scripts/u.log create mode 120000 icarus-miner/data/www/u.log diff --git a/icarus-miner/data/root/scripts/icarus_monitor.sh b/icarus-miner/data/root/scripts/icarus_monitor.sh index 1b7d962..8183f1a 100755 --- a/icarus-miner/data/root/scripts/icarus_monitor.sh +++ b/icarus-miner/data/root/scripts/icarus_monitor.sh @@ -8,6 +8,7 @@ WORKER=http://xiangfu.z@gmail.com_1:1234@pit.deepbit.net:8332/ SCRIPT_PATH=`pwd` ${SCRIPT_PATH}/icarus_undermanager.py -a ${API_KEY} > ${SCRIPT_PATH}/u.log 2>&1 +date >> ${SCRIPT_PATH}/u.log TRUE_COUNT=`less ${SCRIPT_PATH}/u.log | grep "\"alive\": true" | wc -l` HASHRATE=`less ${SCRIPT_PATH}/u.log | grep "\"hashrate\": 0," | wc -l` diff --git a/icarus-miner/data/root/scripts/u.log b/icarus-miner/data/root/scripts/u.log new file mode 100644 index 0000000..7a33c8b --- /dev/null +++ b/icarus-miner/data/root/scripts/u.log @@ -0,0 +1 @@ +icarus_monitor.sh not start yet diff --git a/icarus-miner/data/www/u.log b/icarus-miner/data/www/u.log new file mode 120000 index 0000000..40aea2a --- /dev/null +++ b/icarus-miner/data/www/u.log @@ -0,0 +1 @@ +../root/scripts/u.log \ No newline at end of file