X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1c23f91baf21cbc86e5ac7bfd6fed183c36b7205..1bc290ecce828f4a28d096c383815d2aa9199253:/cookbooks/planet/files/default/history_cgi/HEADER.cgi
diff --git a/cookbooks/planet/files/default/history_cgi/HEADER.cgi b/cookbooks/planet/files/default/history_cgi/HEADER.cgi
index 460acd319..b713338cb 100755
--- a/cookbooks/planet/files/default/history_cgi/HEADER.cgi
+++ b/cookbooks/planet/files/default/history_cgi/HEADER.cgi
@@ -44,11 +44,12 @@ def nice_time(time):
return '%d months' % (time / 2592000.)
def file_info(file, name):
+ torrent_file = file + '.torrent'
size = nice_size(file)
hash = search(r'\w{32}', open(file+'.md5', 'r').read()).group(0)
date = nice_time(time() - stat(file).st_mtime)
- return '%(name)s
%(size)s, created %(date)s ago.
md5: %(hash)s.' % locals()
+ return '%(name)s (torrent)
%(size)s, created %(date)s ago.
md5: %(hash)s.' % locals()
planet_link = file_info('history-latest.osm.bz2', 'Latest Full History Planet XML File')
planet_pbf_link = file_info('../../pbf/full-history/history-latest.osm.pbf', 'Latest Full History Planet PBF File')