littlestone0806 2 éve
szülő
commit
cb622205cd
1 módosított fájl, 3 hozzáadás és 5 törlés
  1. 3 5
      sherpa-ncnn/csrc/display.h

+ 3 - 5
sherpa-ncnn/csrc/display.h

@@ -33,13 +33,11 @@ class Display {
   void Print(int32_t segment_id, const std::string &s) {
 #ifdef _MSC_VER
     if (segment_id != -1) {
-      if (last_segment_ != segment_id) 
-      {
+      if (last_segment_ != segment_id) {
           fprintf(stderr, "\n%d:%s", segment_id, s.c_str());
           last_segment_ = segment_id;
-      }
-      else{
-          fprintf(stderr, "%s", s.c_str());
+      } else {
+          fprintf(stderr, "\r%d:%s", segment_id, s.c_str());
       }
     } else {
       fprintf(stderr, "%s\n", s.c_str());