Fix an incompatibility with newer Node.js.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 31 Mar 2019 15:49:19 +0000 (17:49 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 31 Mar 2019 15:49:19 +0000 (17:49 +0200)
server/serve-analysis.js

index ed11e10..86f2d90 100644 (file)
@@ -183,7 +183,7 @@ var reread_file = function(event, filename) {
        touch_timer = setTimeout(function() {
                console.log("Touching analysis.json due to no other activity");
                var now = Date.now() / 1000;
-               fs.utimes(json_filename, now, now);
+               fs.utimes(json_filename, now, now, function() {});
        }, 30000);
 }
 var possibly_wakeup_clients = function() {