Rev 6969 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6969 | Rev 6988 | ||
---|---|---|---|
Line 295... | Line 295... | ||
295 | else strlcpy(#size_nm, "b ",2); |
295 | else strlcpy(#size_nm, "b ",2); |
296 | while (bytes>1023) bytes/=1024; |
296 | while (bytes>1023) bytes/=1024; |
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) |
|
- | 301 | { |
|
- | 302 | debugval("bytes_lo", bytes_lo); |
|
- | 303 | debugval("bytes_hi", bytes_hi); |
|
- | 304 | ||
- | 305 | if (bytes_hi > 0) { |
|
- | 306 | if (bytes_lo>=1073741824) bytes_lo /= 1073741824; else bytes_lo = 0; |
|
- | 307 | sprintf(#ConvertSize_size_prefix,"%d Gb",bytes_hi*4 + bytes_lo); |
|
- | 308 | return #ConvertSize_size_prefix; |
|
- | 309 | } |
|
- | 310 | else return ConvertSize(bytes_lo); |
|
- | 311 | } |
|
300 | :dword notify(dword notify_param) |
312 | :dword notify(dword notify_param) |
301 | { |
313 | { |
302 | return RunProgram("/sys/@notify", notify_param); |
314 | return RunProgram("/sys/@notify", notify_param); |
303 | } |
315 | } |
304 | :void die(dword _last_msg) |
316 | :void die(dword _last_msg) |