erenavsarogullari commented on code in PR #20372:
URL: https://github.com/apache/datafusion/pull/20372#discussion_r2868425251
##########
benchmarks/src/util/options.rs:
##########
@@ -116,20 +116,20 @@ impl CommonOpt {
}
}
-/// Parse memory limit from string to number of bytes
-/// e.g. '1.5G', '100M' -> 1572864
-fn parse_memory_limit(limit: &str) -> Result<usize, String> {
+/// Parse capacity limit from string to number of bytes by allowing units: K,
M and G.
+/// Supports formats like '1.5G', '100M' -> 1572864
Review Comment:
I guess it has been defined mistakenly and can be updated as follows to show
`byte` representation:
```
'1.5G' -> 1610612736, '100M' -> 104857600
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]