|
@@ -3,6 +3,7 @@ package main
|
|
|
import (
|
|
|
"fmt"
|
|
|
"log"
|
|
|
+ "os"
|
|
|
"sort"
|
|
|
"strconv"
|
|
|
"strings"
|
|
@@ -246,6 +247,8 @@ func (c *ByClassifier) readStatsTokens() {
|
|
|
//CleanMEH cleans periodically the spurious tokens.
|
|
|
func (c *ByClassifier) CleanMEH() {
|
|
|
|
|
|
+ var err error
|
|
|
+
|
|
|
ProxyFlow.refreshtime, err = time.ParseDuration(os.Getenv("REFRESHTIME"))
|
|
|
if err != nil {
|
|
|
ProxyFlow.refreshtime = time.Duration(48 * time.Hour)
|