diff --git a/examples/scribe_tail b/examples/scribe_tail index cc75ebb1..332d3d16 100755 --- a/examples/scribe_tail +++ b/examples/scribe_tail @@ -169,7 +169,7 @@ def do_tail(client, filename): except OSError: st_results = fd_results - if st_results.st_size < where: + if fd_results.st_size < where: logger.info('%s was truncated. Jump back to 0.', filename) fd.seek(0) elif st_results.st_ino == fd_results.st_ino: @@ -347,4 +347,4 @@ if __name__ == '__main__': main() except KeyboardInterrupt: logger.info('Exiting on KeyboardInterrupt.') - sys.exit() \ No newline at end of file + sys.exit()