diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2014-08-20 08:23:27 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-25 08:57:45 +0100 |
commit | 6d08e5bb09293c03d8953831888c64d8eca889bf (patch) | |
tree | 7a2d7dff6f1db1324d84204a4c63669f59d23761 /bitbake/lib/bb/monitordisk.py | |
parent | 91083de4cb03bcb279ede3024cd2660b6c653808 (diff) | |
download | poky-6d08e5bb09293c03d8953831888c64d8eca889bf.tar.gz |
bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional.
(Bitbake rev: 587b144ee409d444494d8d7f2d1c53ede8f7c953)
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/monitordisk.py')
-rw-r--r-- | bitbake/lib/bb/monitordisk.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/bb/monitordisk.py b/bitbake/lib/bb/monitordisk.py index fca43eefd0..6b03682584 100644 --- a/bitbake/lib/bb/monitordisk.py +++ b/bitbake/lib/bb/monitordisk.py | |||
@@ -52,10 +52,10 @@ def getMountedDev(path): | |||
52 | parentDev = os.stat(path).st_dev | 52 | parentDev = os.stat(path).st_dev |
53 | currentDev = parentDev | 53 | currentDev = parentDev |
54 | # When the current directory's device is different from the | 54 | # When the current directory's device is different from the |
55 | # parrent's, then the current directory is a mount point | 55 | # parent's, then the current directory is a mount point |
56 | while parentDev == currentDev: | 56 | while parentDev == currentDev: |
57 | mountPoint = path | 57 | mountPoint = path |
58 | # Use dirname to get the parrent's directory | 58 | # Use dirname to get the parent's directory |
59 | path = os.path.dirname(path) | 59 | path = os.path.dirname(path) |
60 | # Reach the "/" | 60 | # Reach the "/" |
61 | if path == mountPoint: | 61 | if path == mountPoint: |
@@ -77,7 +77,7 @@ def getDiskData(BBDirs, configuration): | |||
77 | """Prepare disk data for disk space monitor""" | 77 | """Prepare disk data for disk space monitor""" |
78 | 78 | ||
79 | # Save the device IDs, need the ID to be unique (the dictionary's key is | 79 | # Save the device IDs, need the ID to be unique (the dictionary's key is |
80 | # unique), so that when more than one directories are located in the same | 80 | # unique), so that when more than one directory is located on the same |
81 | # device, we just monitor it once | 81 | # device, we just monitor it once |
82 | devDict = {} | 82 | devDict = {} |
83 | for pathSpaceInode in BBDirs.split(): | 83 | for pathSpaceInode in BBDirs.split(): |
@@ -187,11 +187,11 @@ class diskMonitor: | |||
187 | if self.spaceInterval and self.inodeInterval: | 187 | if self.spaceInterval and self.inodeInterval: |
188 | self.enableMonitor = True | 188 | self.enableMonitor = True |
189 | # These are for saving the previous disk free space and inode, we | 189 | # These are for saving the previous disk free space and inode, we |
190 | # use them to avoid print too many warning messages | 190 | # use them to avoid printing too many warning messages |
191 | self.preFreeS = {} | 191 | self.preFreeS = {} |
192 | self.preFreeI = {} | 192 | self.preFreeI = {} |
193 | # This is for STOPTASKS and ABORT, to avoid print the message repeatly | 193 | # This is for STOPTASKS and ABORT, to avoid printing the message |
194 | # during waiting the tasks to finish | 194 | # repeatedly while waiting for the tasks to finish |
195 | self.checked = {} | 195 | self.checked = {} |
196 | for k in self.devDict: | 196 | for k in self.devDict: |
197 | self.preFreeS[k] = 0 | 197 | self.preFreeS[k] = 0 |