Fix for time module. (#20479)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4e9edef1f1
Коммит
5b294d079a
@@ -3564,11 +3564,11 @@ func (s *TimerLayerGroupStore) DistinctGroupMemberCount() (int64, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *TimerLayerGroupStore) DistinctGroupMemberCountForSource(source model.GroupSource) (int64, error) {
|
func (s *TimerLayerGroupStore) DistinctGroupMemberCountForSource(source model.GroupSource) (int64, error) {
|
||||||
start := timemodule.Now()
|
start := time.Now()
|
||||||
|
|
||||||
result, err := s.GroupStore.DistinctGroupMemberCountForSource(source)
|
result, err := s.GroupStore.DistinctGroupMemberCountForSource(source)
|
||||||
|
|
||||||
elapsed := float64(timemodule.Since(start)) / float64(timemodule.Second)
|
elapsed := float64(time.Since(start)) / float64(time.Second)
|
||||||
if s.Root.Metrics != nil {
|
if s.Root.Metrics != nil {
|
||||||
success := "false"
|
success := "false"
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user