Inspector: hide invalid stats (#26750)

This commit is contained in:
Ryan McKinley 2020-08-01 08:35:54 -07:00 committed by GitHub
parent 094254c0c6
commit f9df580016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,8 +23,12 @@ export const InspectStatsTab: React.FC<InspectStatsTabProps> = ({ data, dashboar
dataRows += frame.length;
}
stats.push({ displayName: 'Total request time', value: requestTime, unit: 'ms' });
stats.push({ displayName: 'Data processing time', value: processingTime, unit: 'ms' });
if (requestTime > 0) {
stats.push({ displayName: 'Total request time', value: requestTime, unit: 'ms' });
}
if (processingTime > 0) {
stats.push({ displayName: 'Data processing time', value: processingTime, unit: 'ms' });
}
stats.push({ displayName: 'Number of queries', value: data.request.targets.length });
stats.push({ displayName: 'Total number rows', value: dataRows });