Skip to content

Commit

Permalink
-- removed support for lower case transfer size units
Browse files Browse the repository at this point in the history
  • Loading branch information
stansmith907 committed Sep 28, 2015
1 parent 1e27c54 commit 3fbe5f4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ def writeXML(transOption)
# digital transfer options - transfer size / units
s = transOption[:transferSize]
if !s.nil?
su = transOption[:transferSizeUnits].upcase
su = transOption[:transferSizeUnits]
if !su.nil?
case su
when 'kB'
s = s / 1024
when 'KB'
s = s * 0.001
s = s / 1000
when 'GB'
s = s * 1000.0
when 'TB'
Expand Down

0 comments on commit 3fbe5f4

Please sign in to comment.