Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
datasid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
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
simmctic
datasid
Commits
8601dce2
Commit
8601dce2
authored
11 years ago
by
Diego Giovane Pasqualin
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/kbits-to-bytes-in-webservice' of /home/git/repositories/minicom/datasid
parents
f774491f
327dd9cc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/DataSID.java
+5
-5
5 additions, 5 deletions
webservice/DataSID.java
with
5 additions
and
5 deletions
webservice/DataSID.java
+
5
−
5
View file @
8601dce2
...
...
@@ -469,11 +469,11 @@ public class DataSID {
}
private
PreparedStatement
createNetUsageStatement
(
Connection
con
,
java
.
sql
.
Date
contactDate
,
BigInteger
idpoint
,
Object
macaddr
,
String
collect_date
,
String
collect_time
,
long
down_
kbit
s
,
BigInteger
down_packages
,
long
up_
kbit
s
,
BigInteger
up_packages
)
throws
SQLException
{
BigInteger
idpoint
,
Object
macaddr
,
String
collect_date
,
String
collect_time
,
long
down_
byte
s
,
BigInteger
down_packages
,
long
up_
byte
s
,
BigInteger
up_packages
)
throws
SQLException
{
final
String
query
=
"INSERT INTO net_usage "
+
"(contact_date, id_point, macaddr, collect_date, collect_time, "
+
"down_
kbit
s, down_packages, up_
kbit
s, up_packages, ip, city_code) VALUES "
+
"down_
byte
s, down_packages, up_
byte
s, up_packages, ip, city_code) VALUES "
+
"(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"
;
PreparedStatement
st
=
con
.
prepareStatement
(
query
);
...
...
@@ -488,11 +488,11 @@ public class DataSID {
st
.
setTime
(
5
,
java
.
sql
.
Time
.
valueOf
(
collect_time
));
st
.
setLong
(
6
,
down_
kbit
s
);
st
.
setLong
(
6
,
down_
byte
s
);
st
.
setInt
(
7
,
down_packages
.
intValue
());
st
.
setLong
(
8
,
up_
kbit
s
);
st
.
setLong
(
8
,
up_
byte
s
);
st
.
setInt
(
9
,
up_packages
.
intValue
());
...
...
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