davocarli / sharedeck-y

sharedeck.games plugin for Decky
MIT License
32 stars 9 forks source link

Fix playtime formatting #2

Closed nbelzer closed 1 year ago

nbelzer commented 1 year ago
nbelzer commented 1 year ago

@davocarli ShareDeck uses the formula: 40Wh * 60minutes / power_draw for expected playtime. This is slightly different from the 2405 / power_draw that you use. Is there a reason you use 2405 instead of 2400?

davocarli commented 1 year ago

@nbelzer The incorrect battery size was from my being rushed (when initially writing this purely for personal use) and was likely a rounding error on my part when figuring out the formula.

As far as the missing space - this was intentional because with the space a lot of "titles" become just long enough that they will extend to a second line. Without the space, I couldn't find any that had this behavior. Happy to still revert to the previous formatting if you feel strongly about it, but for now I've reverted to having no space.