2020-02-25 13:58:18 -05:00
|
|
|
// +build !linux
|
2019-01-21 22:57:23 -05:00
|
|
|
|
2019-01-09 22:04:19 -05:00
|
|
|
/*
|
2020-02-25 13:58:18 -05:00
|
|
|
* MinIO Cloud Storage, (C) 2019-2020 MinIO, Inc.
|
2019-01-09 22:04:19 -05:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package cpu
|
|
|
|
|
|
|
|
import (
|
2019-01-21 22:57:23 -05:00
|
|
|
"fmt"
|
|
|
|
"runtime"
|
2019-01-14 20:21:27 -05:00
|
|
|
"time"
|
2019-01-09 22:04:19 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
func newCounter() (counter, error) {
|
2019-01-21 22:57:23 -05:00
|
|
|
return counter{}, fmt.Errorf("cpu metrics not implemented for %s platform", runtime.GOOS)
|
2019-01-09 22:04:19 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c counter) now() time.Time {
|
|
|
|
return time.Time{}
|
|
|
|
}
|