From d6fa12eff63e3dafd2b7f1a5f96d2b65ed74d032 Mon Sep 17 00:00:00 2001 From: 3err0 Date: Sat, 6 Jul 2019 15:15:29 +0800 Subject: [PATCH] move temp value to macros --- template-l3.xml | 10 +++++++--- template-s9.xml | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/template-l3.xml b/template-l3.xml index a8aaa1a..1eed73b 100644 --- a/template-l3.xml +++ b/template-l3.xml @@ -1,7 +1,7 @@ 4.2 - 2019-07-06T06:06:47Z + 2019-07-06T07:14:30Z AntMiner L3 @@ -1705,6 +1705,10 @@ {$HOST.PORT} 4028 + + {$TEMP_LOW} + 75 + {$URL1} stratum+tcp://eu.ltc.sigmapool.com:3333 @@ -1741,9 +1745,9 @@ - (({AntMiner L3:AntMinerL3.Temp1.min(15m)}>75 or {AntMiner L3:AntMinerL3.Temp2.min(15m)}>75 or {AntMiner L3:AntMinerL3.Temp3.min(15m)}>75 or {AntMiner L3:AntMinerL3.Temp4.min(15m)}>75) and {AntMiner L3:icmpping.last()}=1) + (({AntMiner L3:AntMinerL3.Temp1.min(15m)}>{$TEMP_LOW} or {AntMiner L3:AntMinerL3.Temp2.min(15m)}>{$TEMP_LOW} or {AntMiner L3:AntMinerL3.Temp3.min(15m)}>{$TEMP_LOW} or {AntMiner L3:AntMinerL3.Temp4.min(15m)}>{$TEMP_LOW}) and {AntMiner L3:icmpping.last()}=1) 1 - (({AntMiner L3:AntMinerL3.Temp1.last()}<75 or {AntMiner L3:AntMinerL3.Temp2.last()}<75 or {AntMiner L3:AntMinerL3.Temp3.last()}<75 or {AntMiner L3:AntMinerL3.Temp4.last()}<75) and {AntMiner L3:icmpping.last()}=1) + (({AntMiner L3:AntMinerL3.Temp1.min(15m)}<{$TEMP_LOW} or {AntMiner L3:AntMinerL3.Temp2.min(15m)}<{$TEMP_LOW} or {AntMiner L3:AntMinerL3.Temp3.min(15m)}<{$TEMP_LOW} or {AntMiner L3:AntMinerL3.Temp4.min(15m)}<{$TEMP_LOW}) and {AntMiner L3:icmpping.last()}=1) AntMiner L3 High temp on {HOST.NAME} 0 diff --git a/template-s9.xml b/template-s9.xml index 8181669..2cec54c 100644 --- a/template-s9.xml +++ b/template-s9.xml @@ -1,7 +1,7 @@ 4.2 - 2019-07-06T03:25:00Z + 2019-07-06T07:13:00Z AntMiner S9 @@ -1595,6 +1595,10 @@ {$HOST.PORT} 4028 + + {$TEMP_LOW} + 90 + {$URL1} stratum+tcp://eu1.btc.sigmapool.com:3333 @@ -1631,9 +1635,9 @@ - ({AntMiner S9:AntMinerS9.Temp6.min(15m)}>90 or {AntMiner S9:AntMinerS9.Temp7.min(15m)}>90 or {AntMiner S9:AntMinerS9.Temp8.min(15m)}>90) and {AntMiner S9:icmpping.last()}=1 + ({AntMiner S9:AntMinerS9.Temp6.min(15m)}>{$TEMP_LOW} or {AntMiner S9:AntMinerS9.Temp7.min(15m)}>{$TEMP_LOW} or {AntMiner S9:AntMinerS9.Temp8.min(15m)}>{$TEMP_LOW}) and {AntMiner S9:icmpping.last()}=1 1 - ({AntMiner S9:AntMinerS9.Temp6.last()}<90 or {AntMiner S9:AntMinerS9.Temp7.last()}<90 or {AntMiner S9:AntMinerS9.Temp8.last()}<90) and {AntMiner S9:icmpping.last()}=1 + ({AntMiner S9:AntMinerS9.Temp6.last()}<{$TEMP_LOW} or {AntMiner S9:AntMinerS9.Temp7.last()}<{$TEMP_LOW} or {AntMiner S9:AntMinerS9.Temp8.last()}<{$TEMP_LOW}) and {AntMiner S9:icmpping.last()}=1 AntMiner S9 High temp on {HOST.NAME} 0