Skip to content

Commit

Permalink
Update get time function if checking a link
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippKilian committed Nov 4, 2019
1 parent b921688 commit 3160cb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agents/lbu_status
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ for result in pipeout:
else:
filepath = "/" + result.split(" ")[1]
if changemode == "A" or changemode == "U":
changetime = dt.fromtimestamp(os.path.getmtime(filepath))
changetime = dt.fromtimestamp(os.lstat(filepath).st_mtime)
timediff = current_time - changetime
seconds = timediff.seconds + timediff.days * 3600
print seconds, changemode, filepath
Expand Down
2 changes: 1 addition & 1 deletion packages/lbu_status
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
'web': ['plugins/wato/lbu_status.py']},
'name': 'lbu_status',
'title': 'LBU Status',
'version': '1.0.1',
'version': '1.0.2',
'version.min_required': '1.2.8p27',
'version.packaged': '1.6.0p3'}

0 comments on commit 3160cb0

Please sign in to comment.