Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ali-middleware-5-sync
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
ali-middleware-5-sync
Commits
904be91c
There was an error fetching the commit references. Please try again later.
Commit
904be91c
authored
5 years ago
by
潇洒
Browse files
Options
Downloads
Patches
Plain Diff
use cpu
parent
0266fcb0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workspace-provider/src/main/java/com/aliware/tianchi/CallbackServiceImpl.java
+2
-2
2 additions, 2 deletions
...rc/main/java/com/aliware/tianchi/CallbackServiceImpl.java
with
2 additions
and
2 deletions
workspace-provider/src/main/java/com/aliware/tianchi/CallbackServiceImpl.java
+
2
−
2
View file @
904be91c
...
...
@@ -45,8 +45,8 @@ public class CallbackServiceImpl implements CallbackService {
private
String
generateStatusMessage
()
{
try
{
List
<
String
>
cpuLoadList
=
getProcessCpuLoad
().
stream
().
map
(
Object:
:
toString
).
collect
(
Collectors
.
toList
());
//
String cpuLoadString = String.join(",", cpuLoadList);
return
"cpu="
+
cpuLoad
List
[
0
]
;
String
cpuLoadString
=
String
.
join
(
","
,
cpuLoadList
);
return
"cpu="
+
cpuLoad
String
;
}
catch
(
Exception
ex
)
{
return
"error"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment