From 577a3759c06a93ecf387294e1b272987adeb03ac Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Fri, 14 Aug 2015 15:44:24 +0100 Subject: [PATCH] bugfix for memory chunk size --- libraries/metrics/memory.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/metrics/memory.coffee b/libraries/metrics/memory.coffee index 5b3c8f55ae..1b4e1ef1bb 100644 --- a/libraries/metrics/memory.coffee +++ b/libraries/metrics/memory.coffee @@ -8,11 +8,11 @@ oneMegaByte = 1024 * 1024 CpuTimeBucket = 100 # current cpu time allowance in milliseconds CpuTimeBucketMax = 100 # maximum amount of cpu time allowed in bucket -CpuTimeBucketRate = 1 # add this many milliseconds per minute +CpuTimeBucketRate = 10 # add this many milliseconds per minute gcInterval = 1 # how many minutes between gc (parameter is dynamically adjusted) countSinceLastGc = 0 # how many minutes since last gc -MemoryChunkSize = 4 * oneMegaByte # how much we need to free to consider gc worth doing +MemoryChunkSize = 4 # how many megabytes we need to free to consider gc worth doing readyToGc = () -> # update allowed cpu time