cnumr / cnumr/GreenIT-Analysis

Calcul de l'eco index

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
161
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Bonjour,

En regardant le code qui calcule l'eco index je trouve la formule suivante ([code](https://github.com/cnumr/GreenIT-Analysis/blob/master/script/ecoIndex.js#L34)):

`return 100 - 5 * (3*q_dom + 2*q_req + q_size)/6;`

Or sur le site [ecoindex ](https://www.ecoindex.fr/comment-ca-marche/), on trouve la suivante:

100 - (3*q_dom + 2*q_req + q_size)/6

Il y a-t-il une erreur quelque part?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in script/ecoIndex.js at the formula around line 34 and compare it with the calculation described on the linked EcoIndex site. Verify which multiplier is correct for the project’s q_dom, q_req, and q_size values; done means the implementation and its documented explanation agree, with the discrepancy resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
performance
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.