diff --git a/LCU/PPSTune/ppstune/ppstune.py b/LCU/PPSTune/ppstune/ppstune.py index 6b94c49573504063b6c54a8f40e70d35d09b9653..6c4da0f69c9559100fea93f1002eb386644aaa2f 100755 --- a/LCU/PPSTune/ppstune/ppstune.py +++ b/LCU/PPSTune/ppstune/ppstune.py @@ -15,6 +15,7 @@ import signal, inspect import subprocess import logging import pwd +import platform; from math import log, floor @@ -1967,7 +1968,11 @@ def pps_delays_conf(station, clock_mhz, start_date, pps_delays): ''' user = pwd.getpwuid(os.getuid()).pw_name header = header_format % ((station, user)+gmtime_tuple(start_date)+(clock_mhz,)) - contents = header + str(len(pps_delays)) + ' [\n' + if ( platform.machine() == "x86_64" ): + contents = header + '(0,' + str(len(pps_delays)-1) + ') [\n' + else: + contents = header + str(len(pps_delays)) + ' [\n' + for subrack in range(len(pps_delays) / 16): subrack_delays = pps_delays[subrack*16:(subrack+1)*16] contents += ' '.join([('%3d' % step) for step in subrack_delays])