Bug #57207 --> initialze elapsed time to 0 because we may use the variable before we

intialize it later on...
sr=alecf, r=sspitzer
This commit is contained in:
mscott%netscape.com 2000-10-24 22:20:25 +00:00
Родитель 14aeef2386
Коммит 786d08e821
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -36,7 +36,7 @@ var startTime;
// since this progress dialog is brought up after we've already started downloading, we need to record the # bytes already
// downloaded before we started showing progress. This is used to make sure our time remaining calculation works correctly...
var initialByteOffset;
var elapsed;
var elapsed = 0;
var interval = 1000; // Update every 1000 milliseconds.
var lastUpdate = -interval; // Update initially.