init files

This commit is contained in:
AArt1256 2025-11-13 19:07:39 +03:00
commit 8197a022bd
1409 changed files with 139317 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#! /usr/bin/env lua
for line in io.stdin:lines() do
local loader_cpu, frames_lo, frames_hi = line:match("^%S+%s*(%x+)%s*(%x+)%s*(%x+)")
loader_cpu = tonumber("0x"..loader_cpu)
frames = tonumber("0x"..frames_lo) + (256 * tonumber("0x"..frames_hi))
throughput = 185526 * 50 / frames;
print(("(%d, %.f)"):format(loader_cpu, throughput))
end