Skip to content

Units Converter: Transfer Rate: Switching time gives incorrect result #99

@cederics

Description

@cederics

When switching between the time units in the Units Converter: Transfer Rate the result are incorrect.
For example, if I enter 1 Bit per sec. and then switch to minutes, I expect 60 Bits per min., but the result is 0.01667 (about 1/60).

I think the error is in modules/tools/ui/src/main/kotlin/dev/turingcomplete/intellijdevelopertoolsplugin/tool/ui/converter/unitconverter/TransferRateConverter.kt setFromTimeDimensionChange, timeFactor should be targetTimeDimension divided by originalTimeDimension and not the other way around

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions