OSDN Git Service

fix for https://github.com/Bytom/vapor/pull/374#discussion_r319840951
[bytom/vapor.git] / toolbar / precog / monitor / monitor.go
index 4a9453d..432b0ee 100644 (file)
@@ -4,6 +4,7 @@ import (
        "fmt"
        "os"
        "os/user"
+       "path"
        "strings"
 
        "github.com/jinzhu/gorm"
@@ -76,7 +77,7 @@ func makePath() (string, error) {
                return "", err
        }
 
-       dataPath := usr.HomeDir + "/.vapor/precog"
+       dataPath := path.Join(usr.HomeDir, "/.vapor_precog")
        if err := os.MkdirAll(dataPath, os.ModePerm); err != nil {
                return "", err
        }