repair a bg that find_by_terminal_no
with a new function that statistics by hour
todo:
  going to cowork with matlab