Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adnan Ahmad
YCSB
Commits
bd4ca603
Commit
bd4ca603
authored
9 years ago
by
Sean Busbey
Browse files
Options
Downloads
Plain Diff
Merge pull request #238 from busbey/issue-237
[client] clean up status message creation.
parents
8b7decb0
d1a9b123
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/java/com/yahoo/ycsb/Client.java
+12
-17
12 additions, 17 deletions
core/src/main/java/com/yahoo/ycsb/Client.java
with
12 additions
and
17 deletions
core/src/main/java/com/yahoo/ycsb/Client.java
+
12
−
17
View file @
bd4ca603
...
...
@@ -102,25 +102,20 @@ class StatusThread extends Thread
DecimalFormat
d
=
new
DecimalFormat
(
"#.##"
);
String
label
=
_label
+
format
.
format
(
new
Date
());
if
(
totalops
==
0
)
{
System
.
err
.
println
(
label
+
" "
+(
interval
/
1000
)+
" sec: "
+
totalops
+
" operations; "
+
Measurements
.
getMeasurements
().
getSummary
());
}
else
{
System
.
err
.
println
(
label
+
" "
+
(
interval
/
1000
)+
" sec: "
+
totalops
+
" operations; "
+
d
.
format
(
curthroughput
)+
" current ops/sec; "
+
Measurements
.
getMeasurements
().
getSummary
());
}
if
(
_standardstatus
)
{
if
(
totalops
==
0
)
{
System
.
out
.
println
(
label
+
" "
+(
interval
/
1000
)+
" sec: "
+
totalops
+
" operations; "
+
Measurements
.
getMeasurements
().
getSummary
()
);
StringBuilder
msg
=
new
StringBuilder
(
label
).
append
(
" "
).
append
(
interval
/
1000
).
append
(
" sec: "
);
msg
.
append
(
totalops
).
append
(
" operations; "
);
if
(
totalops
!=
0
)
{
msg
.
append
(
d
.
format
(
curthroughput
)).
append
(
" current ops/sec; "
);
}
else
{
System
.
out
.
println
(
label
+
" "
+(
interval
/
1000
)+
" sec: "
+
totalops
+
" operations; "
+
d
.
format
(
curthroughput
)+
" current ops/sec; "
+
Measurements
.
getMeasurements
().
getSummary
());
}
msg
.
append
(
Measurements
.
getMeasurements
().
getSummary
());
System
.
err
.
println
(
msg
);
if
(
_standardstatus
)
{
System
.
out
.
println
(
msg
);
}
try
...
...
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