mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 22:07:12 +02:00
basename for hdf5 fixes
This commit is contained in:
@ -9,6 +9,8 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <libgen.h> //basename
|
||||
#include <string.h>
|
||||
using namespace std;
|
||||
|
||||
|
||||
@ -119,12 +121,13 @@ int HDF5File::CreateFile(uint64_t fnum) {
|
||||
FILE_LOG(logINFO) << *udpPortNumber << ": HDF5 File created: " << currentFileName;
|
||||
//other files
|
||||
else {
|
||||
char c[1000]; strcpy(c, currentFileName.c_str());
|
||||
if (loss)
|
||||
bprintf(RED,"[%u]: Packet_Loss:%lu Fifo_Max_Level:%d \tNew_File:%s\n",
|
||||
*udpPortNumber,loss, fifo->GetMaxLevelForFifoBound() , basename(currentFileName.c_str()));
|
||||
*udpPortNumber,loss, fifo->GetMaxLevelForFifoBound() , basename(c));
|
||||
else
|
||||
bprintf(GREEN,"[%u]: Packet_Loss:%lu Fifo_Max_Level:%d \tNew_File:%s\n",
|
||||
*udpPortNumber,loss, fifo->GetMaxLevelForFifoBound(), basename(currentFileName.c_str()));
|
||||
*udpPortNumber,loss, fifo->GetMaxLevelForFifoBound(), basename(c));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user