acsicuib / YAFS

Yet Another Fog Simulator (YAFS)
MIT License
98 stars 72 forks source link

Bug in tutorials/04_userMovement #76

Closed felipedumer closed 1 week ago

felipedumer commented 3 weeks ago
Screenshot 2024-08-21 at 20 32 24

Is this logic correct?

alloc_DES contains information about the process (users in this custom monitor)running in each node. In this debugging, the process number 9 is running in node 23.

When the logic of moving a user from node X to node Y is triggered, it creates a new process with the number of the previous node and assigns a value of the new node to it.

The correct value should be 9 = 31 instead of 23 = 31

image

wisaaco commented 1 week ago

Hi, You are right. Line 70 should be:

sim.alloc_DES[userDES] = newNode

Thank you. Isaac