nkrode / RedisLive

Visualize your redis instances, analyze query patterns and spikes.
http://www.nkrode.com/article/real-time-dashboard-for-redis
MIT License
3.07k stars 644 forks source link

Remove incorrect version of total_seconds() #82

Closed krig closed 6 years ago

krig commented 9 years ago

The second copy of total_seconds() is incorrect as it looks for the total_seconds method in datetime.datetime, not datetime.timedelta.

convert_to_epoch() still worked since it would use the first version, but any other user of total_seconds would get the second, incorrect version which always takes the else branch.

This commit simply removes the incorrect version.