alsmanager_lib 1.0.56 → 1.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules.js +2 -2
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -7128,7 +7128,7 @@ function getBenchmarkById(db_used, id_device) {
|
|
|
7128
7128
|
function getBenchmarkPercentageByIdSQLite(id_device) {
|
|
7129
7129
|
var query = "select id_device, total_ref, evaluation_perfs, ";
|
|
7130
7130
|
query += "case ";
|
|
7131
|
-
query += "when total_ref is not null and total_ref > 0 then (evaluation_perfs
|
|
7131
|
+
query += "when total_ref is not null and total_ref > 0 then ROUND(evaluation_perfs * 100 / total_ref, 0) ";
|
|
7132
7132
|
query += "else 0 ";
|
|
7133
7133
|
query += "end as perc_prestazioni from device_bmark ";
|
|
7134
7134
|
query += "where id_device = " + id_device;
|
|
@@ -7138,7 +7138,7 @@ function getBenchmarkPercentageByIdSQLite(id_device) {
|
|
|
7138
7138
|
function getBenchmarkPercentageByIdMySQL(id_device) {
|
|
7139
7139
|
var query = "select id_device, total_ref, evaluation_perfs, ";
|
|
7140
7140
|
query += "case ";
|
|
7141
|
-
query += "when total_ref is not null and total_ref > 0 then (evaluation_perfs
|
|
7141
|
+
query += "when total_ref is not null and total_ref > 0 then ROUND(evaluation_perfs * 100 / total_ref, 0) ";
|
|
7142
7142
|
query += "else 0 ";
|
|
7143
7143
|
query += "end as perc_prestazioni from device_bmark ";
|
|
7144
7144
|
query += "where id_device = :id_device";
|