chore(refactor): Remove MountInfo struct from api (#225)

Signed-off-by: Gagandeep Singh <codegagan@gmail.com>
This commit is contained in:
Gagandeep Singh 2020-10-11 22:29:23 -07:00 committed by GitHub
parent 55a155c4a5
commit 3da4f7308e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 32 additions and 104 deletions

View file

@ -17,9 +17,9 @@ limitations under the License.
package usage
import (
"time"
"fmt"
"github.com/openebs/zfs-localpv/pkg/common/env"
"time"
)
// OpenEBSPingPeriod ping interval of volume io analytics
@ -50,7 +50,7 @@ func PingCheck() {
// getPingPeriod sets the duration of health events, defaults to 24
func getPingPeriod() time.Duration {
value := env.GetOrDefault(OpenEBSPingPeriod, string(defaultPingPeriod))
value := env.GetOrDefault(OpenEBSPingPeriod, fmt.Sprint(defaultPingPeriod))
duration, _ := time.ParseDuration(value)
// Sanitychecks for setting time duration of health events
// This way, we are checking for negative and zero time duration and we