Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: appengine/swarming/swarming_bot/api/platforms/posix.py

Issue 1860863002: Update copyright notice from Swarming to LUCI; add AUTHORS and CONTRIBUTORS. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Swarming Authors. All rights reserved. 1 # Copyright 2015 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """POSIX specific utility functions.""" 5 """POSIX specific utility functions."""
6 6
7 import subprocess 7 import subprocess
8 import sys 8 import sys
9 9
10 10
11 def _run_df(): 11 def _run_df():
(...skipping 17 matching lines...) Expand all
29 29
30 def get_disks_info(): 30 def get_disks_info():
31 """Returns disks info on all mount point in Mb.""" 31 """Returns disks info on all mount point in Mb."""
32 return { 32 return {
33 items[5]: { 33 items[5]: {
34 u'free_mb': round(float(items[3]) / 1024., 1), 34 u'free_mb': round(float(items[3]) / 1024., 1),
35 u'size_mb': round(float(items[1]) / 1024., 1), 35 u'size_mb': round(float(items[1]) / 1024., 1),
36 } 36 }
37 for items in _run_df() 37 for items in _run_df()
38 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698