Update Graph.lua
Small fix, removed hard cap and changed it to maxentries
This commit is contained in:
@@ -23,7 +23,7 @@ return function(name, basalt)
|
|||||||
table.insert(graphData, value)
|
table.insert(graphData, value)
|
||||||
self:updateDraw()
|
self:updateDraw()
|
||||||
end
|
end
|
||||||
if(#graphData>100)then -- 100 is hard capped to prevent memory leaks
|
while #graphData>self:getMaxEntries() do
|
||||||
table.remove(graphData,1)
|
table.remove(graphData,1)
|
||||||
end
|
end
|
||||||
return self
|
return self
|
||||||
@@ -105,4 +105,4 @@ return function(name, basalt)
|
|||||||
|
|
||||||
object.__index = object
|
object.__index = object
|
||||||
return setmetatable(object, base)
|
return setmetatable(object, base)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user