Skip to content

Commit

Permalink
Fixed #234
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeke committed Sep 18, 2018
1 parent 6b6b9e6 commit b7eeeeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Analyzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ long get_type_count(char *log_path, char *level, char *key_word TSRMLS_DC)
#ifdef WINDOWS
if (is_level_all == 1)
{
spprintf(&sh, 0, "findstr \"%s\" %s ", key_word, path);
spprintf(&sh, 0, "findstr \"%s\" %s | find /c /v \"\" ", key_word, path);
}
else
{
Expand All @@ -89,7 +89,7 @@ long get_type_count(char *log_path, char *level, char *key_word TSRMLS_DC)
#ifdef WINDOWS
if (is_level_all == 1)
{
spprintf(&sh, 0, "findstr %s | find /c /v \"\" ", path);
spprintf(&sh, 0, "more %s | find /c /v \"\" ", path);
}
else
{
Expand Down Expand Up @@ -222,7 +222,7 @@ int get_detail(char *log_path, char *level, char *key_word, long start, long end
#ifdef WINDOWS
if (is_level_all == 1)
{
spprintf(&sh, 0, "%s %s", command, path);
spprintf(&sh, 0, "more %s", path);
}
else
{
Expand Down

0 comments on commit b7eeeeb

Please sign in to comment.