Fixed a win-only issue causing the gcode view not to reload on file modification

This commit is contained in:
Gina Häußge 2015-10-07 18:13:17 +02:00
parent 5f982ec6c8
commit 947f4c89cc

View file

@ -680,7 +680,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)