Skip to content

Commit

Permalink
same uptime return type for every return value
Browse files Browse the repository at this point in the history
  • Loading branch information
littleskunk committed Nov 2, 2015
1 parent dfc7e21 commit 275d57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataserv/Farmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def calculate_uptime(self):

# in case registration happened a short bit ago
if delta_reg < timedelta(seconds=1):
return 100
return 100.0

if delta_ping <= timedelta(minutes=app.config["ONLINE_TIME"]):
farmer_uptime = farmer.uptime + delta_ping.seconds
Expand Down

0 comments on commit 275d57e

Please sign in to comment.