From 493d3b4ae15d0f631f7e6eaf36d8f3169be0d07d Mon Sep 17 00:00:00 2001 From: 3err0 Date: Sat, 28 Dec 2019 10:42:19 +0800 Subject: [PATCH] move hashrate_low trigger value to macros --- template-l3.xml | 8 ++++++-- template-s9.xml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/template-l3.xml b/template-l3.xml index 153a4a6..0d90fb0 100644 --- a/template-l3.xml +++ b/template-l3.xml @@ -1,7 +1,7 @@ 4.2 - 2019-12-28T01:55:53Z + 2019-12-28T02:40:48Z AntMiner L3 @@ -1701,6 +1701,10 @@ + + {$HASH_LOW} + 400 + {$HOST.PORT} 4028 @@ -1777,7 +1781,7 @@ - ({AntMiner L3:AntMinerL3.Hashrate.last(240)}<400 and {AntMiner L3:AntMinerL3.Elapsed.last()}>600) and ({AntMiner L3:icmpping.last()}=1) + ({AntMiner L3:AntMinerL3.Hashrate.last(240)}<{$HASH_LOW} and {AntMiner L3:AntMinerL3.Elapsed.last()}>600) and ({AntMiner L3:icmpping.last()}=1) 0 AntMiner L3 Low hashrate on {HOST.NAME} diff --git a/template-s9.xml b/template-s9.xml index c5b46e5..4b3f35b 100644 --- a/template-s9.xml +++ b/template-s9.xml @@ -1,7 +1,7 @@ 4.2 - 2019-12-28T01:56:20Z + 2019-12-28T02:41:13Z AntMiner S9 @@ -1591,6 +1591,10 @@ + + {$HASH_LOW} + 13 + {$HOST.PORT} 4028 @@ -1667,7 +1671,7 @@ - ({AntMiner S9:AntMinerS9.Hashrate.max(240)}<13 and {AntMiner S9:AntMinerS9.Elapsed.last()}>600) and {AntMiner S9:icmpping.last()}=1 + ({AntMiner S9:AntMinerS9.Hashrate.max(240)}<{$HASH_LOW} and {AntMiner S9:AntMinerS9.Elapsed.last()}>600) and {AntMiner S9:icmpping.last()}=1 0 AntMiner S9 Low hashrate on {HOST.NAME}