system/corennnnn
Révision | 42b1f638dba8ed02588e45d74aff8cb8ff84443a (tree) |
---|---|
l'heure | 2016-08-03 17:34:23 |
Auteur | Andrew Boie <andrew.p.boie@inte...> |
Commiter | Chih-Wei Huang |
diskconfig: Fix disk_layout.conf size parsing
If the user was appending 'K' to their lengths (which is valid
but redundant) it was being treated as megabytes instead of
kilobytes.
Change-Id: I979ec4d01f1342de1f3209b946201ca87bad32a7
@@ -76,7 +76,7 @@ parse_len(const char *str, uint64_t *plen) | ||
76 | 76 | } |
77 | 77 | } else { |
78 | 78 | /* convert len to kilobytes */ |
79 | - if (multiple > 1024) | |
79 | + if (multiple >= 1024) | |
80 | 80 | multiple >>= 10; |
81 | 81 | *plen *= multiple; |
82 | 82 |