+-- Copyright (c) 2012, 2014. The SimGrid Team.
+-- All rights reserved.
+
+-- This program is free software; you can redistribute it and/or modify it
+-- under the terms of the license (GNU LGPL) which comes with this package.
+
-- Routing table data
routing_table = {
buckets = {},
simgrid.debug("Updating " .. id .. " in my routing table")
-- If the element is already in the bucket, we update it.
table.remove(bucket.list,index_of(bucket.list,id))
- table.insert(bucket.list,0,id)
+ table.insert(bucket.list,id)
else
simgrid.debug("Insert " .. id .. " in my routing table in bucket " .. bucket.id)
table.insert(bucket.list,id)
end
return answer
-end
\ No newline at end of file
+end