server/EdgeKernel.rb
# Function used to terminate EdgeKernel when a queue is empty and report
Function used to terminate EdgeKernel when a queue is empty and report
Function used to terminate EdgeKernel when a queue is empty and report
def terminate_on(c, target ,u, ts)
  if c[1] == target
    if c[0].empty? && $active_kernels[u].zero?
      finished = (`date +%s%N`.to_i - ts) / 1_000_000
      puts finished
      exit 0
    end
  end
end
def terminate_on ( c , target , u , ts ) if c [ 1 ] == target if c [ 0 ] . empty? && $active_kernels [ u ] . zero? finished = ( ` date +%s%N ` . to_i - ts ) / 1_000_000 puts finished exit 0 end end end
Function used to terminate EdgeKernel when a queue is empty and report
Function used to terminate EdgeKernel when a queue is empty and report
c
<not_specific>
target
<not_specific>
u
<not_specific>
ts
<not_specific>