- Timestamp:
- Jul 2, 2019, 9:28:15 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r14383 r14384 1672 1672 for line in dns_list: 1673 1673 reverse = False 1674 k, items = li ne.items()[0]1674 k, items = list(line.items())[0] 1675 1675 if type(items) == dict: 1676 1676 if 'reverse' in items: … … 1693 1693 1694 1694 ntp_servers = [x[0] for x in get_nameservers()] 1695 for id, chunk in enumerate(chunks(ntp_servers,( len(ntp_servers)/4))):1695 for id, chunk in enumerate(chunks(ntp_servers,(math.floor(len(ntp_servers)/4)))): 1696 1696 for ntp_server in chunk: 1697 1697 wleiden_zone['%i.pool.ntp' % id].append((ntp_server, False))
Note:
See TracChangeset
for help on using the changeset viewer.