3 e@s$ddlTddZedkr eddS))*c Cst|t}d}xh|D]`}|jj\}}t|}|dkrLtdt||}|dkr||}tdt|t|fqWWdQRXdS)NZSWA_E_DPU_OPS_STATEz%s DPU OPS stateZ DPU_REBOOTz%s DPU reboot after %s)openstripsplitZstr_to_datetimeprintZisotimestr)filenamestreamZlast_opslineZstimeZeventZttZdurationr >/ROSINA_B1/SOLAR/WWW/documents/ISSUES/DPU_REBOOT/STAT/alive.pyprocesss  r __main__z MIXED.listN)Zsolarr __name__r r r r s