diff options
Diffstat (limited to 'meta/classes/buildstats.bbclass')
-rw-r--r-- | meta/classes/buildstats.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index dc9afb101b..6fd13a8602 100644 --- a/meta/classes/buildstats.bbclass +++ b/meta/classes/buildstats.bbclass | |||
@@ -65,7 +65,7 @@ def set_device(e): | |||
65 | try: | 65 | try: |
66 | for line in open("/proc/diskstats", "r"): | 66 | for line in open("/proc/diskstats", "r"): |
67 | if majordev == int(line.split()[0]) and minordev == int(line.split()[1]): | 67 | if majordev == int(line.split()[0]) and minordev == int(line.split()[1]): |
68 | rdev=line.split()[2] | 68 | rdev=line.split()[2] |
69 | except: | 69 | except: |
70 | pass | 70 | pass |
71 | file = open(e.data.getVar('DEVFILE', True), "w") | 71 | file = open(e.data.getVar('DEVFILE', True), "w") |
@@ -100,10 +100,10 @@ def get_diskdata(var, dev, data): | |||
100 | olddiskdata = data.getVar(var, False) | 100 | olddiskdata = data.getVar(var, False) |
101 | diskdata = {} | 101 | diskdata = {} |
102 | if olddiskdata is None: | 102 | if olddiskdata is None: |
103 | return | 103 | return |
104 | newdiskdata = get_diskstats(dev) | 104 | newdiskdata = get_diskstats(dev) |
105 | for key in olddiskdata.iterkeys(): | 105 | for key in olddiskdata.iterkeys(): |
106 | diskdata["Start"+key] = str(int(olddiskdata[key])) | 106 | diskdata["Start"+key] = str(int(olddiskdata[key])) |
107 | diskdata["End"+key] = str(int(newdiskdata[key])) | 107 | diskdata["End"+key] = str(int(newdiskdata[key])) |
108 | return diskdata | 108 | return diskdata |
109 | 109 | ||