Masanobu Yasui authored on 2010/03/30 19:08:26
Showing 3 changed files
... ...
@@ -910,7 +910,11 @@ int mexec_status(mcomm *c, int n)
910 910
   cprintf(0, c, "sendsize: %d\n", moption.sendsize);
911 911
   
912 912
   /*----- send rate -----*/
913
-  cprintf(0, c, "sendrate: %d/%d\n", view_rate * 8 / 1024 / 1024, moption.sendrate * 8 / 1024 / 1024);
913
+  if(moption.sendrate){
914
+    cprintf(0, c, "sendrate: %d/%d\n", 
915
+      view_rate        * 8 / 1024 / 1024, 
916
+      moption.sendrate * 8 / 1024 / 1024);
917
+  }
914 918
 
915 919
   /*----- command -----*/
916 920
   count = 0;
... ...
@@ -62,18 +62,20 @@ static int msend_readywait()
62 62
   time_t tm;
63 63
   struct timeval tv;
64 64
 
65
-  tm = time(NULL);
66
-  while(tm == send_time){
67
-    if(moption.sendrate > send_rate){
68
-      break;
69
-    }
70
-    usleep(1000);
65
+  if(moption.sendrate){
71 66
     tm = time(NULL);
72
-  }
73
-  if(tm != send_time){
74
-    view_rate = send_rate;
75
-    send_rate =  0;
76
-    send_time = tm;
67
+    while(tm == send_time){
68
+      if(moption.sendrate > send_rate){
69
+        break;
70
+      }
71
+      usleep(1000);
72
+      tm = time(NULL);
73
+    }
74
+    if(tm != send_time){
75
+      view_rate = send_rate;
76
+      send_rate =  0;
77
+      send_time = tm;
78
+    }
77 79
   }
78 80
   while(!moption.sendready){
79 81
     FD_ZERO(&fds);
... ...
@@ -1,5 +1,5 @@
1 1
 Name:           makuosan
2
-Version:        1.3.0
2
+Version:        1.3.1
3 3
 Release:        1%{?dist}
4 4
 Summary:        Multicasts All-Kinds of Updating Operation for Servers on Administered Network
5 5
 
... ...
@@ -88,6 +88,7 @@ rm -rf %{buildroot}
88 88
 
89 89
 
90 90
 %changelog
91
+* Mon Mar 30 2010 Masanobu Yasui <yasui0906@gmail.com> - 1.3.1
91 92
 * Mon Mar  1 2010 Masanobu Yasui <yasui0906@gmail.com> - 1.3.0
92 93
 * Mon Jun 16 2009 Masanobu Yasui <yasui0906@gmail.com> - 1.2.2
93 94
 * Mon Jun 16 2009 Masanobu Yasui <yasui0906@gmail.com> - 1.2.1