On its journey it gets hungry and looklooks for food inon the back of a stationary whale heading the same direction for more than one hour.
- The bird was looking for food, therefore not resting.
- The OP didn't mention that the bird should not stop flying.