mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
add TODO to make case sensitivity consistent between byte sizes and times
This commit is contained in:
parent
75d9445323
commit
79524c1041
@ -236,6 +236,8 @@ public class TimeValue implements Serializable, Streamable {
|
||||
}
|
||||
try {
|
||||
long millis;
|
||||
// TODO: we should be consistent about whether upper-case is allowed (it is always allowed for ByteSizeValue, but here only for
|
||||
// s/S and h/H):
|
||||
if (sValue.endsWith("S")) {
|
||||
millis = Long.parseLong(sValue.substring(0, sValue.length() - 1));
|
||||
} else if (sValue.endsWith("ms")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user