Fix SI and Decimal unit usage
SI: For 1000, it is kB, MB, GB IEC: For 1024, it is KiB, MiB, GiB JEDEC: For 1024, it is KB, MB (conflicts with SI, of course) Ultimately, what we decided is for RAM use IEC and for Disk use SI. This is what docker does and also suggested here - https://stackoverflow.com/questions/8632269/displaying-file-size-1000b-1kb-or-1024b-1kb
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
<h4 class="modal-title">{{ 'terminal.upload.title' | tr:{ name: selected.name } }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<span><b>{{ uploadProgress.current | prettyByteSize }}</b> (total {{ uploadProgress.total | prettyByteSize }})</span>
|
||||
<span><b>{{ uploadProgress.current | prettyDecimalSize }}</b> (total {{ uploadProgress.total | prettyDecimalSize }})</span>
|
||||
<div class="progress progress-striped active">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" style="width: {{ 100*(uploadProgress.current/uploadProgress.total) }}%"></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user