all: sync with master; upd chlog
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import { handleActions } from 'redux-actions';
|
||||
import { normalizeTopClients } from '../helpers/helpers';
|
||||
import { DAY, HOUR, STATS_INTERVALS_DAYS } from '../helpers/constants';
|
||||
import {
|
||||
DAY,
|
||||
HOUR,
|
||||
STATS_INTERVALS_DAYS,
|
||||
TIME_UNITS,
|
||||
} from '../helpers/constants';
|
||||
|
||||
import * as actions from '../actions/stats';
|
||||
|
||||
@@ -18,6 +23,7 @@ const defaultStats = {
|
||||
numReplacedSafebrowsing: 0,
|
||||
numReplacedSafesearch: 0,
|
||||
avgProcessingTime: 0,
|
||||
timeUnits: TIME_UNITS.HOURS,
|
||||
};
|
||||
|
||||
const stats = handleActions(
|
||||
@@ -60,6 +66,7 @@ const stats = handleActions(
|
||||
avg_processing_time: avgProcessingTime,
|
||||
top_upstreams_responses: topUpstreamsResponses,
|
||||
top_upstrems_avg_time: topUpstreamsAvgTime,
|
||||
time_units: timeUnits,
|
||||
} = payload;
|
||||
|
||||
const newState = {
|
||||
@@ -81,6 +88,7 @@ const stats = handleActions(
|
||||
avgProcessingTime,
|
||||
topUpstreamsResponses,
|
||||
topUpstreamsAvgTime,
|
||||
timeUnits,
|
||||
};
|
||||
|
||||
return newState;
|
||||
|
||||
Reference in New Issue
Block a user