[LNT] r276038 - replace the non-standard -B option with -k

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 19 15:13:05 PDT 2016


Author: cmatthews
Date: Tue Jul 19 17:13:05 2016
New Revision: 276038

URL: http://llvm.org/viewvc/llvm-project?rev=276038&view=rev
Log:
replace the non-standard -B option with -k

On Darwin's du, -B 1024 is invalid.  Swap -B 1024 with the -k flag which
means the same thing but exists on Darwin.

Modified:
    lnt/trunk/lnt/server/db/rules/rule_update_profile_stats.py

Modified: lnt/trunk/lnt/server/db/rules/rule_update_profile_stats.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/rules/rule_update_profile_stats.py?rev=276038&r1=276037&r2=276038&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/rules/rule_update_profile_stats.py (original)
+++ lnt/trunk/lnt/server/db/rules/rule_update_profile_stats.py Tue Jul 19 17:13:05 2016
@@ -21,7 +21,7 @@ def update_profile_stats(ts, run_id):
     age = []
 
     dt = time.time()
-    blocks = subprocess.check_output("du -s -B 1024 %s" % profile_path,
+    blocks = subprocess.check_output("du -s -k %s" % profile_path,
                                      shell=True).split('\t')[0]
     kb = float(blocks) # 1024 byte blocks.
 




More information about the llvm-commits mailing list