Skip to content

Commit b74587b

Browse files
committed
fixed:sys_info.cpp:255: warning: unused variable 'status'
1 parent 52af177 commit b74587b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎kbe/src/lib/helper/sys_info.cpp‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ SystemInfo::PROCESS_INFOS SystemInfo::getProcessInfo(uint32 pid)
163163
infos.cpu = 0.f;
164164
infos.memused = 0;
165165
infos.error = false;
166+
167+
bool tryed = false;
166168

167169
if(!_autocreate())
168170
goto _END;
169171

170-
bool tryed = false;
171-
172172
_TRYGET:
173173
if(!hasPID(pid, &_g_proclist))
174174
{
@@ -232,8 +232,6 @@ float SystemInfo::getCPUPerByPID(uint32 pid)
232232
pid = (uint32)getProcessPID();
233233
}
234234

235-
int status = SIGAR_OK;
236-
237235
float percent = 0.f;
238236
bool tryed = false;
239237

@@ -255,6 +253,7 @@ float SystemInfo::getCPUPerByPID(uint32 pid)
255253
}
256254

257255
/*
256+
int status = SIGAR_OK;
258257
// for (size_t i = 0; i < proclist.number; i++)
259258
{
260259
sigar_proc_cpu_t cpu;

0 commit comments

Comments
 (0)