Skip to content

Commit

Permalink
luci-mod-falter: remove broken speedtest
Browse files Browse the repository at this point in the history
Signed-off-by: Packet Please <[email protected]>
  • Loading branch information
pktpls authored and pmelange committed Apr 21, 2024
1 parent 51d67b2 commit 7422358
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions luci/luci-mod-falter/luasrc/controller/freifunk/freifunk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ function index()
page.setuser = false
page.setgroup = false

entry({"freifunk", "status", "zeroes"}, call("zeroes"), "Testdownload")

if nixio.fs.access("/usr/sbin/luci-splash") then
assign({"freifunk", "status", "splash"}, {"splash", "publicstatus"}, _("Splash"), 40)
end
Expand Down Expand Up @@ -120,18 +118,3 @@ function index()
entry({"freifunk", "map", "content"}, template("freifunk-map/map"), nil, 51)
entry({"admin", "freifunk", "profile_error"}, template("freifunk/profile_error"))
end

function zeroes()
local string = require "string"
local http = require "luci.http"
local zeroes = string.rep(string.char(0), 8192)
local cnt = 0
local lim = 1024 * 1024 * 1024

http.prepare_content("application/x-many-zeroes")

while cnt < lim do
http.write(zeroes)
cnt = cnt + #zeroes
end
end

0 comments on commit 7422358

Please sign in to comment.