|
|
@ -55,7 +55,6 @@ func NumProcs() (uint64, error) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func BootTimeWithContext(ctx context.Context) (uint64, error) {
|
|
|
|
func BootTimeWithContext(ctx context.Context) (uint64, error) {
|
|
|
|
|
|
|
|
|
|
|
|
system, role, err := Virtualization()
|
|
|
|
system, role, err := Virtualization()
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
return 0, err
|
|
|
@ -202,7 +201,6 @@ func VirtualizationWithContext(ctx context.Context) (string, string, error) {
|
|
|
|
if PathExists(filepath.Join(filename, "self", "status")) {
|
|
|
|
if PathExists(filepath.Join(filename, "self", "status")) {
|
|
|
|
contents, err := ReadLines(filepath.Join(filename, "self", "status"))
|
|
|
|
contents, err := ReadLines(filepath.Join(filename, "self", "status"))
|
|
|
|
if err == nil {
|
|
|
|
if err == nil {
|
|
|
|
|
|
|
|
|
|
|
|
if StringsContains(contents, "s_context:") ||
|
|
|
|
if StringsContains(contents, "s_context:") ||
|
|
|
|
StringsContains(contents, "VxID:") {
|
|
|
|
StringsContains(contents, "VxID:") {
|
|
|
|
system = "linux-vserver"
|
|
|
|
system = "linux-vserver"
|
|
|
|