cpu[darwin]: move helper path to under the HOME dir.

This commit is contained in:
Shirou WAKAYAMA 2015-07-29 22:25:42 +09:00
parent c195d77ce3
commit cbe10d6761
1 changed files with 2 additions and 1 deletions

View File

@ -7,13 +7,14 @@ import (
"io"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
common "github.com/shirou/gopsutil/common"
)
const HELPER_PATH = "/tmp/gopsutil_cpu_helper"
var HELPER_PATH = filepath.Join(os.Getenv("HOME"), ".gopsutil_cpu_helper")
// enable cpu helper. It may become security problem.
// This env valiable approach will be changed.