Merge pull request #142 from 873314461/bugfix

bugfix
pull/161/head
he liu 2019-08-01 23:26:34 +08:00 committed by GitHub
commit 25e71790c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -2,6 +2,12 @@ package server
import (
"errors"
"math"
"os"
"strconv"
"strings"
"time"
"github.com/cnlh/nps/bridge"
"github.com/cnlh/nps/lib/common"
"github.com/cnlh/nps/lib/file"
@ -13,11 +19,6 @@ import (
"github.com/shirou/gopsutil/load"
"github.com/shirou/gopsutil/mem"
"github.com/shirou/gopsutil/net"
"math"
"os"
"strconv"
"strings"
"time"
)
var (
@ -359,7 +360,7 @@ func GetDashboardData() map[string]interface{} {
case "tcp":
tcp += 1
case "socks5":
udp += 1
socks5 += 1
case "httpProxy":
http += 1
case "udp":