]> git.sesse.net Git - remoteglot/commitdiff
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 ed11e10a06edd810bc6d09cd99963c2fc615efbb..86f2d9083aa9c229451a42acfa9edfba62daa97b 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() {