Skip to content

Commit

Permalink
Fix solaris build
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed Oct 25, 2023
1 parent a3107fc commit 4ca35f1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/sigar.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.

// +build !freebsd,!darwin
// +build !freebsd,!darwin,!solaris

package common

Expand Down
28 changes: 28 additions & 0 deletions common/sigar_solaris.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright (C) 2020 Graylog, Inc.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the Server Side Public License, version 1,
// as published by MongoDB, Inc.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// Server Side Public License for more details.
//
// You should have received a copy of the Server Side Public License
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.

package common

func GetCpuIdle() float64 {
return -1
}

func GetFileSystemList75(string) []string {
return []string{}
}

func GetLoad1() float64 {
return -1
}

0 comments on commit 4ca35f1

Please sign in to comment.