mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 796054 - Display of free space on disk is calculated incorrectly for the stub installer. r=bbondy
This commit is contained in:
parent
09f4ca7f3f
commit
51cf7db2a2
@ -1048,18 +1048,20 @@ Function UpdateFreeSpaceLabel
|
||||
StrCpy $1 "$(GIGA)$(BYTE)"
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
StrCpy $4 "$0"
|
||||
StrLen $3 "$0"
|
||||
${If} $3 > 2
|
||||
StrCpy $2 "$0" 2
|
||||
StrCpy $0 "$0" 1 2
|
||||
StrCpy $0 "$2.$0"
|
||||
${ElseIf} $3 == 2
|
||||
StrCpy $2 "$0" 1
|
||||
StrCpy $0 "$0" -1
|
||||
StrCpy $0 "$2.$0"
|
||||
${If} $3 > 1
|
||||
StrCpy $2 "$0" -1 ; All characters except the last one
|
||||
StrCpy $0 "$0" "" -1 ; The last character
|
||||
${If} "$0" == "0"
|
||||
StrCpy $0 "$2" ; Don't display the decimal if it is 0
|
||||
${Else}
|
||||
StrCpy $0 "$2.$0"
|
||||
${EndIf}
|
||||
${ElseIf} $3 == 1
|
||||
StrCpy $0 "0.$0"
|
||||
${Else}
|
||||
System::Int64Op $4 / 10
|
||||
; This should never happen
|
||||
System::Int64Op $0 / 10
|
||||
Pop $0
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
Loading…
Reference in New Issue
Block a user