Custom 'Who's Online' View - How to filter User View by whether logged in
please check the dev version for drupal 7


  Provides commonly requested user statistics for themers, IP address tracking and Views integration. Statistics include if the user is on or offline.


https://drupal.org/project/user_stats