Skip to content

Commit

Permalink
nodeJS Port release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Sacher committed Apr 22, 2018
1 parent 558ae82 commit f3ae812
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 95 deletions.
18 changes: 0 additions & 18 deletions .editorconfig

This file was deleted.

174 changes: 99 additions & 75 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

This is a s nodeJS Port from [adolfintel's HTML5 Speedtest](https://github.com/adolfintel/speedtest)

## Installation
For any instructions and support please check out the [Wiki](https://github.com/adolfintel/speedtest/wiki)


## License
Copyright (C) 2016-2018 Federico Dossena

Copyright (C) 2018 dunklesToast


This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
Expand Down
4 changes: 2 additions & 2 deletions src/SpeedTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ Server.get('/garbage', function (req, res) {
if (cache.size === requestedSize) {
res.end(cache.random);
} else {
const size = 1048576 * (req.query.ckSize || 100);
const size = 1048576 * requestedSize;
randomBytes(size, (error, bytes) => {
if (error) res.sendStatus(500);
else {
cache.random = bytes;
cache.size = (req.query.ckSize || 100);
cache.size = requestedSize;
res.end(bytes);
}
})
Expand Down

0 comments on commit f3ae812

Please sign in to comment.