Fix total seconds

Total seconds now counts in seconds, and survives server restarts.