Merge branch 'fix/gcodeViewerUpdateOnFileUpdate' into devel

This commit is contained in:
Gina Häußge 2015-10-07 18:54:21 +02:00
commit b7973e4256

View file

@ -691,7 +691,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
# Use a string for mtime because it could be float and the
# javascript needs to exact match
if not sd:
date = int(os.stat(path_on_disk).st_ctime)
date = int(os.stat(path_on_disk).st_mtime)
try:
fileData = self._fileManager.get_metadata(FileDestinations.SDCARD if sd else FileDestinations.LOCAL, path_on_disk)