Skip to content

Commit

Permalink
fixed memory leak in 3dep lua test, calling sys.quit(0) instead of os…
Browse files Browse the repository at this point in the history
….exit fixed it
  • Loading branch information
elidwa committed Jul 25, 2024
1 parent de05808 commit b6e0d1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/usgs3dep/systests/grand_mesa_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ local errorChecking = true
local starttime = time.latch();

-- for i=1,#arr do
for i=1, 5 do
for i=1, 10 do
local lon = arr[i][1]
local lat = arr[i][2]
local height = 0
Expand All @@ -73,7 +73,7 @@ for i=1, 5 do

samplesCnt = samplesCnt + 1

local modulovalue = 3000
local modulovalue = 1000
if (i % modulovalue == 0) then
print(string.format("Sample: %d", samplesCnt))
end
Expand All @@ -86,4 +86,4 @@ local dtime = stoptime - starttime
print(string.format("\nSamples: %d, failedRead: %d", samplesCnt, failedRead))
print(string.format("ExecTime: %f", dtime))

os.exit()
sys.quit(0)

0 comments on commit b6e0d1e

Please sign in to comment.