docstring

This commit is contained in:
Jack 2016-09-23 03:04:59 -04:00
parent bf34fa39b4
commit e115158f86

View file

@ -25,7 +25,7 @@ def frontload(index):
def calculate_price(mean_availability, availability, index_position=0): def calculate_price(mean_availability, availability, index_position=0):
""" """
Calculate mean availability weighted price for a blob Calculate mean-blob-availability and stream-position weighted price for a blob
@param mean_availability: sum of blob availabilities over the number of known blobs @param mean_availability: sum of blob availabilities over the number of known blobs
@param availability: number of known peers for blob @param availability: number of known peers for blob
@ -42,7 +42,7 @@ class BlobPriceAndAvailabilityTracker(object):
Class to track peer counts for known blobs and update price targets Class to track peer counts for known blobs and update price targets
Attributes: Attributes:
prices (dist): dictionary of blob prices prices (dict): dictionary of blob prices
availability (dict): dictionary of peers for known blobs availability (dict): dictionary of peers for known blobs
""" """