Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a9742b32
Commit
a9742b32
authored
Nov 15, 2007
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Nov 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Move out-of-domain checking into PerfDataGetProcessorUsage() and…
taskmgr: Move out-of-domain checking into PerfDataGetProcessorUsage() and PerfDataGetProcessorSystemUsage().
parent
7a9210fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
perfdata.c
programs/taskmgr/perfdata.c
+8
-0
perfpage.c
programs/taskmgr/perfpage.c
+0
-4
No files found.
programs/taskmgr/perfdata.c
View file @
a9742b32
...
...
@@ -332,11 +332,19 @@ ULONG PerfDataGetProcessCount(void)
ULONG
PerfDataGetProcessorUsage
(
void
)
{
if
(
dbIdleTime
<
0
.
0
)
return
0
;
if
(
dbIdleTime
>
100
.
0
)
return
100
;
return
(
ULONG
)
dbIdleTime
;
}
ULONG
PerfDataGetProcessorSystemUsage
(
void
)
{
if
(
dbKernelTime
<
0
.
0
)
return
0
;
if
(
dbKernelTime
>
100
.
0
)
return
100
;
return
(
ULONG
)
dbKernelTime
;
}
...
...
programs/taskmgr/perfpage.c
View file @
a9742b32
...
...
@@ -234,10 +234,6 @@ static DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
*/
CpuUsage
=
PerfDataGetProcessorUsage
();
CpuKernelUsage
=
PerfDataGetProcessorSystemUsage
();
if
(
CpuUsage
<
0
)
CpuUsage
=
0
;
if
(
CpuUsage
>
100
)
CpuUsage
=
100
;
if
(
CpuKernelUsage
<
0
)
CpuKernelUsage
=
0
;
if
(
CpuKernelUsage
>
100
)
CpuKernelUsage
=
100
;
/*
* Get the memory usage
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment