mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
chore(refactor): Remove MountInfo struct from api (#225)
Signed-off-by: Gagandeep Singh <codegagan@gmail.com>
This commit is contained in:
parent
55a155c4a5
commit
3da4f7308e
8 changed files with 32 additions and 104 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue