Function getNodeDowntime is renamed to getNodeAvailability and now returns both downtime and the time elapsed since the current minting period started.
Downtime is now calculated over the current minting period.
The node interface has been changed to include an availability attribute with a new NodeAvailability interface instead of a downtime attribute.
Uptime percentage is now calculated based on calculated node.availability((uptime over the current minting period / current minting period) * 100), instead of node.uptime (which is the uptime since the node's last reboot).
Showing the uptime percentage now enabled on all networks. before it was limited to only the main net.
Description
Fixing node's availability calculations. should now calculate the uptime over the current minting period.
The Calculations are based on my understanding of @LeeSmet comment [here] (https://github.com/threefoldtech/tfgrid_dashboard/issues/366#issuecomment-1304436906)
Changes
getNodeDowntime
is renamed togetNodeAvailability
and now returns both downtime and the time elapsed since the current minting period started.availability
attribute with a newNodeAvailability
interface instead of adowntime
attribute.node.availability
((uptime over the current minting period / current minting period) * 100)
, instead ofnode.uptime
(which is the uptime since the node's last reboot).Related Issues
https://github.com/threefoldtech/tfgrid_dashboard/issues/466
Checklist