work on the reporting

Former-commit-id: 22df0fb4780da583ee956c45441fc15e9283eab1
This commit is contained in:
2016-04-24 18:44:04 +02:00
parent daf3d6dee4
commit c620976902
35 changed files with 472 additions and 202 deletions
+6 -3
View File
@@ -35,14 +35,17 @@ var page_mon = (function() {
// OK
var j = JSON.parse(resp);
if (j.success) {
$('#refdist').html(numfmt(j.deviation, 2));
$('#actual-dev').html(numfmt(j.deviation, 2));
$('#actual-rms').html(numfmt(j.rms, 2));
} else {
errorMsg('Capture failed.');
$('#refdist').html('--');
$('#actual-dev').html('--');
$('#actual-rms').html('--');
}
} catch(e) {
errorMsg(e);
$('#refdist').html('--');
$('#actual-dev').html('--');
$('#actual-rms').html('--');
}
}
});