@NathanOsman monitor the change in network, if it is up log the bandwidth usage every hour and it goes down, the service should log it immediately
the problem with bash I am facing is, I have to run 2 while loops at same time
because of which I have to use a work around, that may break sometime, rarely
C should be faster to avoid such a _break_ more efficiently