fix errors
authorwansuyoo <wansu.yoo@samsung.com>
Mon, 11 Mar 2019 05:12:39 +0000 (14:12 +0900)
committerwansuyoo <wansu.yoo@samsung.com>
Mon, 11 Mar 2019 05:12:39 +0000 (14:12 +0900)
src/devicemgr/resource_monitor.go

index 56101b86442e57d221c09d897d3cb227352105b0..5c0b58f75c0dbf5c7455a98cbfe585b3ac57e3d1 100644 (file)
@@ -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")