openflighthpc / carbon-leaderboard

A tool to compare environmental impact data from different systems
0 stars 0 forks source link

Final backend changes #24

Closed Womblue closed 1 month ago

Womblue commented 1 month ago

This small PR fixes a long-standing issue in which devices with pre-defined instance types were computing all loads as 100% load. It also introduces some numbers for converting carbon into some fun user-friendly units. Take the carbon usage (in kg) and multiply it by any of the given values to convert it to the respective unit.

Womblue commented 1 month ago

Converted to draft for the moment, I'm going to do some work on the manual data entry page because I think the timestamps aren't being read properly

megan-godfrey commented 1 month ago

If the entires are submitted out of time order we get this mess image

I'm not sure if it's possible that would happen without a user fiddling about with the payload file (like I just did) but it shouldn't be too difficult to sort reports by date before plotting so I'll fix that now

Womblue commented 1 month ago

I think it's not out of the question that entries could be added in the wrong order - e.g. if you had a node which automatically ran carbon send every day, and you later discovered that it lost internet connection for a few days, you might want to manually upload the payload file for the missing days at a later date.