Rev 6989 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6989 | Rev 6990 | ||
---|---|---|---|
Line 297... | Line 297... | ||
297 | sprintf(#ConvertSize_size_prefix,"%d %s",bytes,#size_nm); |
297 | sprintf(#ConvertSize_size_prefix,"%d %s",bytes,#size_nm); |
298 | return #ConvertSize_size_prefix; |
298 | return #ConvertSize_size_prefix; |
299 | } |
299 | } |
300 | :dword ConvertSize64(dword bytes_lo, bytes_hi) |
300 | :dword ConvertSize64(dword bytes_lo, bytes_hi) |
301 | { |
301 | { |
302 | debugval("bytes_lo", bytes_lo); |
- | |
303 | debugval("bytes_hi", bytes_hi); |
- | |
304 | - | ||
305 | if (bytes_hi > 0) { |
302 | if (bytes_hi > 0) { |
306 | if (bytes_lo>=1073741824) bytes_lo >>= 30; else bytes_lo = 0; |
303 | if (bytes_lo>=1073741824) bytes_lo >>= 30; else bytes_lo = 0; |
307 | sprintf(#ConvertSize_size_prefix,"%d Gb",bytes_hi<<2 + bytes_lo); |
304 | sprintf(#ConvertSize_size_prefix,"%d Gb",bytes_hi<<2 + bytes_lo); |
308 | return #ConvertSize_size_prefix; |
305 | return #ConvertSize_size_prefix; |
309 | } |
306 | } |