Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
2ca67c9d
Commit
2ca67c9d
authored
Aug 11, 2010
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add timestamp in to HistoryInfo
parent
269f43d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
libuniset.spec
conf/libuniset.spec
+5
-1
SharedMemory.cc
extensions/SharedMemory/SharedMemory.cc
+4
-1
SharedMemory.h
extensions/SharedMemory/SharedMemory.h
+7
-2
No files found.
conf/libuniset.spec
View file @
2ca67c9d
...
...
@@ -3,7 +3,7 @@
Name: libuniset
Version: 0.98
Release: eter
7
Release: eter
8
Summary: UniSet - library for building distributed industrial control systems
License: GPL
Group: Development/C++
...
...
@@ -184,6 +184,10 @@ rm -f %buildroot%_libdir/*.la
%exclude %_pkgconfigdir/libUniSet.pc
%changelog
* Wed Aug 11 2010 Pavel Vainerman <pv@altlinux.ru> 0.98-eter7
- add new types for MTR
- minor fixes in SharedMemory::HistoryInfo (add timestamp)
* Fri Jul 30 2010 Ilya Shpigor <elly@altlinux.org> 0.98-eter6
- add MTR support
- add db_ignore parameter for DBServer
...
...
extensions/SharedMemory/SharedMemory.cc
View file @
2ca67c9d
...
...
@@ -834,6 +834,7 @@ void SharedMemory::updateHistory( UniSetTypes::SensorMessage* sm )
if
(
dlog
.
debugging
(
Debug
::
INFO
)
)
dlog
[
Debug
::
INFO
]
<<
myname
<<
"(updateHistory): HISTORY EVENT for "
<<
(
*
it
)
<<
endl
;
it
->
fuse_tm
=
sm
->
tm
;
m_historySignal
.
emit
(
&
(
*
it
)
);
}
}
...
...
@@ -847,7 +848,8 @@ void SharedMemory::updateHistory( UniSetTypes::SensorMessage* sm )
{
if
(
dlog
.
debugging
(
Debug
::
INFO
)
)
dlog
[
Debug
::
INFO
]
<<
myname
<<
"(updateHistory): HISTORY EVENT for "
<<
(
*
it
)
<<
endl
;
it
->
fuse_tm
=
sm
->
tm
;
m_historySignal
.
emit
(
&
(
*
it
)
);
}
}
...
...
@@ -858,6 +860,7 @@ void SharedMemory::updateHistory( UniSetTypes::SensorMessage* sm )
if
(
dlog
.
debugging
(
Debug
::
INFO
)
)
dlog
[
Debug
::
INFO
]
<<
myname
<<
"(updateHistory): HISTORY EVENT for "
<<
(
*
it
)
<<
endl
;
it
->
fuse_tm
=
sm
->
tm
;
m_historySignal
.
emit
(
&
(
*
it
)
);
}
}
...
...
extensions/SharedMemory/SharedMemory.h
View file @
2ca67c9d
...
...
@@ -238,16 +238,21 @@ class SharedMemory:
id
(
0
),
size
(
0
),
filter
(
""
),
fuse_id
(
UniSetTypes
::
DefaultObjectId
),
fuse_invert
(
false
),
fuse_use_val
(
false
),
fuse_val
(
0
){}
fuse_invert
(
false
),
fuse_use_val
(
false
),
fuse_val
(
0
)
{
struct
timezone
tz
;
gettimeofday
(
&
fuse_tm
,
&
tz
);
}
long
id
;
// ID
HistoryList
hlst
;
// history list
int
size
;
std
::
string
filter
;
// filter field
std
::
string
filter
;
// filter field
UniSetTypes
::
ObjectId
fuse_id
;
// fuse sesnsor
bool
fuse_invert
;
bool
fuse_use_val
;
long
fuse_val
;
struct
timeval
fuse_tm
;
// timestamp
};
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
HistoryInfo
&
h
);
...
...
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