mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-11-10 21:43:54 +01:00
Add status interpretation logic
This commit is contained in:
1 parent
11452bc0aa
commit
477424ab21
1 file changed
+9
-2
@@ -109,8 +109,15 @@ void ProcessManager::stop_receiving()
|
||||
|
||||
string ProcessManager::get_status()
|
||||
{
|
||||
// TODO: Implement status collection.
|
||||
return "nothing to see here";
|
||||
if (write_module_.is_writing()) {
|
||||
return "writing";
|
||||
}
|
||||
|
||||
if (recv_module_.is_receiving()) {
|
||||
return "ready";
|
||||
}
|
||||
|
||||
return "idle";
|
||||
}
|
||||
|
||||
unordered_map<std::string, float> ProcessManager::get_statistics()
|
||||
|
||||
Reference in new issue
Block a user