Skip to content

Commit

Permalink
Fix digital storage calc
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Oct 17, 2023
1 parent d2a7ded commit 442718b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static double Convert(double value, DigitalStorage.UnitType from, Digital
{
return value;
}
return value * digitalStorageConversions[(int)to] / digitalStorageConversions[(int)from];
return value * digitalStorageConversions[(int)from] / digitalStorageConversions[(int)to];
}

private static readonly double[] digitalStorageConversions =
Expand Down

0 comments on commit 442718b

Please sign in to comment.