Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
5fe7e607
Commit
5fe7e607
authored
Mar 24, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sev server fix in get data, time range and number of points returned
parent
dae9e22b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
357 additions
and
47 deletions
+357
-47
sev/lib/sev/src/sev_dbms.cpp
sev/lib/sev/src/sev_dbms.cpp
+350
-46
sev/lib/sev/src/sev_dbms.h
sev/lib/sev/src/sev_dbms.h
+6
-1
src/msg/rt/src/rt_sev_msg.msg
src/msg/rt/src/rt_sev_msg.msg
+1
-0
No files found.
sev/lib/sev/src/sev_dbms.cpp
View file @
5fe7e607
This diff is collapsed.
Click to expand it.
sev/lib/sev/src/sev_dbms.h
View file @
5fe7e607
...
...
@@ -206,9 +206,14 @@ class sev_dbms : public sev_db {
void
add_cache
(
int
item_idx
);
int
begin_transaction
();
int
commit_transaction
();
int
get_closest_time
(
char
*
tablename
,
unsigned
int
options
,
pwr_tTime
*
time
,
int
before
,
int
*
id
);
int
get_closest_time
(
char
*
tablename
,
unsigned
int
options
,
pwr_tTime
*
time
,
int
before
,
unsigned
int
*
id
);
void
string_to_mysqlstring
(
char
*
in
,
char
*
out
,
int
size
);
void
mysqlstring_to_string
(
char
*
in
,
char
*
out
,
int
size
);
int
get_id_range
(
pwr_tStatus
*
sts
,
sev_item
*
item
,
pwr_tMask
options
,
unsigned
int
*
first
,
unsigned
int
*
last
);
int
get_time_range
(
pwr_tStatus
*
sts
,
sev_item
*
item
,
pwr_tMask
options
,
pwr_tTime
*
first
,
pwr_tTime
*
last
);
inline
char
*
create_colName
(
unsigned
int
index
,
char
*
attributename
)
{
static
char
colName
[
constMaxColNameLength
];
strncpy
(
colName
,
attributename
,
constMaxColNameLength
);
...
...
src/msg/rt/src/rt_sev_msg.msg
View file @
5fe7e607
...
...
@@ -54,6 +54,7 @@ nosuchattr <No such attribute exist> /error
range <Unable to get range> /error
unknowntype <Unknown data type> /error
nosuchtable <Table doesn't exist> /error
norows <No rows found> /error
.end
...
...
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