Fix crash from FillRateLogging

Reviewed By: thechefchen

Differential Revision: D4853991

fbshipit-source-id: b024d4052edb04e9f9da2e2504c56f8b7840cded
This commit is contained in:
Spencer Ahrens 2017-04-07 15:49:46 -07:00 коммит произвёл Facebook Github Bot
Родитель 29404f087e
Коммит 6f8ce41a39
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -108,6 +108,9 @@ class FillRateHelper {
return null;
}
const start = performanceNow();
if (props.getItemCount(props.data) === 0) {
return null;
}
if (!this._samplesStartTime) {
this._samplesStartTime = start;
}