Skip to content

Commit 6828736

Browse files
committed
osparc_credits
1 parent dbd48e3 commit 6828736

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/static-webserver/client/source/class/osparc/desktop/credits/CreditsPerService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ qx.Class.define("osparc.desktop.credits.CreditsPerService", {
6464
let totalHours = 0;
6565
entries.forEach(entry => {
6666
totalHours += entry["running_time_in_hours"]
67-
totalCredits+= entry["osparc_credits"]
67+
totalCredits+= parseFloat(entry["osparc_credits"])
6868
});
6969
let datas = [];
7070
entries.forEach(entry => {
7171
datas.push({
7272
service: entry["service_key"],
73-
credits: -1*entry["osparc_credits"],
73+
credits: -1*parseFloat(entry["osparc_credits"]),
7474
hours: entry["running_time_in_hours"],
7575
percentageHours: totalHours ? 100*entry["running_time_in_hours"]/totalHours : 0,
76-
percentageCredits: totalCredits ? 100*entry["osparc_credits"]/totalCredits : 0,
76+
percentageCredits: totalCredits ? 100*parseFloat(entry["osparc_credits"])/totalCredits : 0,
7777
});
7878
});
7979
datas.sort((a, b) => {

0 commit comments

Comments
 (0)