Skip to content
Snippets Groups Projects
Verified Commit ab360163 authored by David Hoese's avatar David Hoese
Browse files

Add basic 'calc_file_size' function to data API (not used)

parent 2d7ab3e5
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,12 @@ def calc_num_records(begin, end, interval):
return diff / data_responses.INTERVALS[interval]
def calc_file_size(num_records, num_streams):
"""Number of bytes returned for a text based format"""
# estimate about 7 bytes (overhead + data characters) per data point
return num_records * num_streams * 7.0
def handle_csv(frame, epoch, sep=',',
message='', code=200, status='success', **kwargs):
output = """# status: {status}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment