Skip to content

Commit 0208947

Browse files
author
pradeep-k
committed
adding # as valid comments in data file
1 parent e1d6b4b commit 0208947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/new_func.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ index_t parsebuf_and_insert(const char* buf , pgraph_t<T>* pgraph)
3636
// Actual parse function, one line at a time
3737
inline index_t parse_netflow_line(char* line, edgeT_t<netflow_dst_t>& netflow)
3838
{
39-
if (line[0] == '%') {
39+
if (line[0] == '%' || line[0]=='#') {
4040
return eNotValid;
4141
}
4242

@@ -84,7 +84,7 @@ inline index_t parse_netflow_line(char* line, edgeT_t<netflow_dst_t>& netflow)
8484
// Actual parse function, one line at a time
8585
inline index_t parse_plaingraph_line(char* line, edgeT_t<sid_t>& edge)
8686
{
87-
if (line[0] == '%') {
87+
if (line[0] == '%' || line[0]=='#') {
8888
return eNotValid;
8989
}
9090

0 commit comments

Comments
 (0)