Skip to content

Register if runs complete, and omit incomplete runs from stats #87

@flyaruu

Description

@flyaruu

If I do a run which fails or which I interrupt, I end up with a run with 0 energy usage.

That will mess with the averages and trends.

For example:

╭────────────────┬────────┬──────────────┬────────────┬───────────┬─────────╮
│ Datetime (Utc) │ Region │ Duration (s) │ Power (Wh) │ CI (gWh)  │ CO2 (g) │
├────────────────┼────────┼──────────────┼────────────┼───────────┼─────────┤
│ 16/04/25 09:05 │ NL     │ 181.142s     │ 0.8981Wh   │ 0.4940gWh │ 0.4437g │
├────────────────┼────────┼──────────────┼────────────┼───────────┼─────────┤
│ 16/04/25 00:17 │ NL     │ 180.881s     │ 0.9155Wh   │ 0.4940gWh │ 0.4522g │
├────────────────┼────────┼──────────────┼────────────┼───────────┼─────────┤
│ 16/04/25 00:14 │ NL     │ 0.000s       │ 0.0000Wh   │ 0.4940gWh │ 0.0000g │
╰────────────────┴────────┴──────────────┴────────────┴───────────┴─────────╯

The first run failed, nothing to do with cardamon, but the last run looks like this:

╭────────┬──────────────┬────────────┬──────────┬─────────┬─────────────────────╮
│ Region │ Duration (s) │ Power (Wh) │ CI (gWh) │ CO2 (g) │ Trend (over 2 runs) │
├────────┼──────────────┼────────────┼──────────┼─────────┼─────────────────────┤
│ NL     │ 181.142s     │ 0.898Wh    │ 0.494gWh │ 0.444g  │ ↑ 0.440Wh           │
╰────────┴──────────────┴────────────┴──────────┴─────────┴─────────────────────╯

So the trend is way up, which obscures any real trends

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions