Migrate from iodine to probe

This commit is contained in:
Harshavardhana
2015-08-03 16:17:21 -07:00
parent 7f13095260
commit d09fd8b0a1
38 changed files with 917 additions and 1339 deletions

12
main.go
View File

@@ -22,11 +22,9 @@ import (
"os/user"
"runtime"
"strconv"
"time"
"github.com/dustin/go-humanize"
"github.com/minio/cli"
"github.com/minio/minio/pkg/iodine"
)
var globalDebugFlag = false
@@ -96,11 +94,13 @@ func getSystemData() map[string]string {
}
}
func main() {
// set up iodine
iodine.SetGlobalState("minio.version", Version)
iodine.SetGlobalState("minio.starttime", time.Now().Format(time.RFC3339))
func init() {
if _, err := user.Current(); err != nil {
Fatalf("Unable to determine current user. Reason: %s\n", err)
}
}
func main() {
// set up go max processes
runtime.GOMAXPROCS(runtime.NumCPU())