Skip to content

Commit

Permalink
Use mIPS over kIPS \o/
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Jan 1, 2021
1 parent c0fd705 commit 3951e5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ <h4>Debugger</h4>

<div id="runtime_infos" style="display: none">
Running: <span id="running_time">0s</span> <br>
Speed: <span id="speed">0</span>kIPS<br>
Avg speed: <span id="avg_speed">0</span>kIPS<br>
Speed: <span id="speed">0</span> mIPS<br>
Avg speed: <span id="avg_speed">0</span> mIPS<br>
<br>
<div id="info_storage" style="display: none">
<b>IDE device (HDA or CDROM)</b><br>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ <h4>Setup</h4>

<div id="runtime_infos" style="display: none">
Running: <span id="running_time">0s</span> <br>
Speed: <span id="speed">0</span>kIPS<br>
Avg speed: <span id="avg_speed">0</span>kIPS<br>
Speed: <span id="speed">0</span> mIPS<br>
Avg speed: <span id="avg_speed">0</span> mIPS<br>
<br>
<div id="info_storage" style="display: none">
<b>IDE device (HDA or CDROM)</b><br>
Expand Down
4 changes: 2 additions & 2 deletions src/browser/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,8 @@
running_time += delta_time;
last_tick = now;

$("speed").textContent = last_ips / delta_time | 0;
$("avg_speed").textContent = total_instructions / running_time | 0;
$("speed").textContent = (last_ips / 1000 / delta_time).toFixed(1);
$("avg_speed").textContent = (total_instructions / 1000 / running_time).toFixed(1);
$("running_time").textContent = format_timestamp(running_time / 1000 | 0);
}

Expand Down

0 comments on commit 3951e5f

Please sign in to comment.