When calculating a percentage, how to prevent going past 99% to 100%
<p>I'm using the following to calculate a percentage:</p>

<pre><code>var progress = parseInt(data.loaded / data.total * 100, 10);
</code></pre>

<p>How can I keep this from going to 100%? I want to max out at 99%?</p>

<p>Thanks</p>
