Changeset 522 in tmcsimulator for trunk/src/python/unifiedlogger/cad_watcher.py


Ignore:
Timestamp:
11/11/2019 08:39:41 AM (6 years ago)
Author:
jdalbey
Message:

Unified logger - cad_watcher.py set lastLineNum to zero when fileSize == 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/python/unifiedlogger/cad_watcher.py

    r471 r522  
    1111 
    1212lastLineNum = 0 
    13  
    14 # Utility functions 
    15 def isEmpty(cmsitem): 
    16     return cmsitem == ",,,,," 
    17 def isFull(cmsitem): 
    18     return not isEmpty(cmsitem) 
    1913 
    2014def setup(): 
     
    4943            # Assume this is a read sync problem: Don't modify lastLineNum 
    5044            print pathToLog+" is empty, ignoring." 
     45            lastLineNum = 0   #Start over 
    5146            return [] 
    5247        else: # file is good, read it. 
Note: See TracChangeset for help on using the changeset viewer.