Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix network speeds. closes #287
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber authored and Kriesse committed Mar 2, 2017
1 parent cefebfd commit 09af652
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elements/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = function (dat, stats, send) {
: (dat.network.connected) ? html`<span><span class="arrow"></span> ${speed(netStats.downloadSpeed)}<span class="arrow ml2"></span> ${speed(netStats.uploadSpeed)}</span>`
: 'waiting for peers…'
function speed (n) {
return `${n || 0}kB/s`
return `${Math.round((n || 0) / 1024)}kB/s`
}

return html`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dat-doctor": "^1.2.2",
"dat-encoding": "^4.0.1",
"dat-icons": "^1.12.0",
"dat-worker": "^5.10.0",
"dat-worker": "^5.10.1",
"electron-auto-updater": "^0.9.2",
"electron-default-menu": "^1.0.0",
"electron-window": "^0.8.1",
Expand Down

0 comments on commit 09af652

Please sign in to comment.