fix bug in taskScheduling.cpp
fix bug in taskScheduling.cpp

  Updates idle row energy only when its energy is
  less than previous real task

eroicaleo/HEES,eroicaleo/HEES,eroicaleo/HEES,eroicaleo/HEES,eroicaleo/HEES,eroicaleo/HEES