Fix sorting issue and show loader

Closes 
This commit is contained in:
Ildar Kamalov 2018-10-12 16:58:48 +03:00
parent 47a9c6555e
commit 1cdbe3f879
2 changed files with 7 additions and 4 deletions
client/src/helpers

View file

@ -6,7 +6,7 @@ import round from 'lodash/round';
import { STATS_NAMES } from './constants';
const formatTime = (time) => {
export const formatTime = (time) => {
const parsedTime = dateParse(time);
return dateFormat(parsedTime, 'HH:mm:ss');
};
@ -26,7 +26,7 @@ export const normalizeLogs = logs => logs.map((log) => {
return `${type}: ${value} (ttl=${ttl})`;
}) : [];
return {
time: formatTime(time),
time,
domain,
type,
response: responsesArray,