time_since_last_state now returns value in seconds

As is expected by the views.