Skip to content

Commit

Permalink
adding string parser
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed Jun 12, 2024
1 parent 113e65f commit a8f755e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util/pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package node

import (
"encoding/json"
"fmt"
"os"

"github.com/NetSepio/erebrus/core"
Expand Down Expand Up @@ -123,8 +124,8 @@ func CreateNodeStatus(address string, id string, startTimeStamp int64, name stri
// IpInfoTimezone: core.GlobalIPInfo.Timezone,
Version: "v1",
CodeHash: "xxxxxxxxxxxxxxxxxxx",
SystemInfo: ToJSON(GetOSInfo()),
IpInfo: ToJSON(GetIPInfo()),
SystemInfo: fmt.Sprintf("%+v\n", GetOSInfo()),
IpInfo: fmt.Sprintf("%+v\n", GetIPInfo()),
}

return nodeStatus
Expand Down

0 comments on commit a8f755e

Please sign in to comment.