projects
/
platform
/
core
/
system
/
edge-orchestration.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb85937
)
fix errors
author
wansuyoo
<wansu.yoo@samsung.com>
Mon, 11 Mar 2019 05:12:39 +0000
(14:12 +0900)
committer
wansuyoo
<wansu.yoo@samsung.com>
Mon, 11 Mar 2019 05:12:39 +0000
(14:12 +0900)
src/devicemgr/resource_monitor.go
patch
|
blob
|
history
diff --git
a/src/devicemgr/resource_monitor.go
b/src/devicemgr/resource_monitor.go
index 56101b86442e57d221c09d897d3cb227352105b0..5c0b58f75c0dbf5c7455a98cbfe585b3ac57e3d1 100644
(file)
--- a/
src/devicemgr/resource_monitor.go
+++ b/
src/devicemgr/resource_monitor.go
@@
-314,7
+314,7
@@
func getDiskByteIO() (readingByteTotal, writingByteTotal uint64) {
readSector, _ := strconv.ParseUint(fields[5], 10, 64)
writeSector, _ := strconv.ParseUint(fields[9], 10, 64)
- sysFile
_
ForSector := fmt.Sprintf("/sys/block/%s/queue/hw_sector_size", name)
+ sysFileForSector := fmt.Sprintf("/sys/block/%s/queue/hw_sector_size", name)
sectorSizeContent, _ := ioutil.ReadFile(sysFileForSector)
sectorSizeLines := strings.Split(string(sectorSizeContent), "\n")