mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-12 14:50:25 +08:00
优化代码
This commit is contained in:
@@ -100,7 +100,7 @@ func (this *NodeThresholdService) FindAllEnabledNodeThresholds(ctx context.Conte
|
||||
DurationUnit: threshold.DurationUnit,
|
||||
SumMethod: threshold.SumMethod,
|
||||
NotifyDuration: int32(threshold.NotifyDuration),
|
||||
IsOn: threshold.IsOn == 1,
|
||||
IsOn: threshold.IsOn,
|
||||
})
|
||||
}
|
||||
return &pb.FindAllEnabledNodeThresholdsResponse{NodeThresholds: pbThresholds}, nil
|
||||
@@ -166,6 +166,6 @@ func (this *NodeThresholdService) FindEnabledNodeThreshold(ctx context.Context,
|
||||
DurationUnit: threshold.DurationUnit,
|
||||
SumMethod: threshold.SumMethod,
|
||||
NotifyDuration: int32(threshold.NotifyDuration),
|
||||
IsOn: threshold.IsOn == 1,
|
||||
IsOn: threshold.IsOn,
|
||||
}}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user