X-Git-Url: https://arthur.barton.de/gitweb/?p=netdata.git;a=blobdiff_plain;f=web%2Findex.html;h=3283b16e89cf53e215ca0a6758a30758ff6a783b;hp=e845be1a56ac0aa10f57434d910ee0bb12fcd412;hb=629d3b767a0cd826bb10a9438d2088b7ee71add0;hpb=aa6b96fc2d421517a59a1aaaf91be5f201d34287 diff --git a/web/index.html b/web/index.html index e845be1a..3283b16e 100644 --- a/web/index.html +++ b/web/index.html @@ -2384,14 +2384,12 @@ }) .done(function(data) { data = data.replace(/(\r\n|\n|\r| |\t)/gm,""); - - var c = getNetdataCommitIdFromVersion(); - if(c !== null && data.length === 40 && data.substring(0, 7) !== c) { - versionLog('Installed files commit id and internal netdata git commit id do not match'); - data = c; + if(data.length !== 40) { + var c = getNetdataCommitIdFromVersion(); + if(c === null) versionLog('Cannot find the git commit id of netdata.'); + callback(c); } - - if(data.length >= 7) { + else { versionLog('Installed git commit id of netdata is ' + data); document.getElementById('netdataCommitId').innerHTML = data.substring(0, 7); callback(data);