<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/f6224eae237303df08b792187682113b4dca6ff9">https://github.com/macports/macports-base/commit/f6224eae237303df08b792187682113b4dca6ff9</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit f6224eae237303df08b792187682113b4dca6ff9
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Thu Dec 15 18:14:40 2016 +0100
<span style='display:block; white-space:pre;color:#404040;'> bytesize: Show only 2 digits after decimal point
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Use of 3 digits is a overly precise default. It could also lead to
</span><span style='display:block; white-space:pre;color:#404040;'> confusion whether the point was meant to be the thousands separator as
</span><span style='display:block; white-space:pre;color:#404040;'> used in some locales.
</span>---
src/macports1.0/macports_util.tcl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/macports_util.tcl b/src/macports1.0/macports_util.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 37027ab..3d51b89 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/macports_util.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/macports_util.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -186,7 +186,7 @@ proc lunshift {varName args} {
</span>
# bytesize filesize ?unit? ?format?
# Format an integer representing bytes using given units
<span style='display:block; white-space:pre;background:#ffe0e0;'>-proc bytesize {siz {unit {}} {format {%.3f}}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc bytesize {siz {unit {}} {format {%.2f}}} {
</span> if {$unit == {}} {
if {$siz > 0x40000000} {
set unit "GiB"
</pre><pre style='margin:0'>
</pre>