瀏覽代碼

debugging ;)

dpacaud 12 年之前
父節點
當前提交
4475b38580
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mysql-backend.js

+ 1 - 1
mysql-backend.js

@@ -66,7 +66,7 @@ StatdMySQLBackend.prototype.handleCounters = function(_counters, time_stamp) {
       continue;
       continue;
     }
     }
     else {
     else {
-      querries.push("insert into statistics('timestamp','name','value') values(" + time_stamp + ",'" + counter +"'," + value + ") on duplicate key value = value + " + value + ", timestamp = " + time_stamp);
+      querries.push("insert into statistics('timestamp','name','value') values(" + time_stamp + ",'" + counter +"'," + value + ") on duplicate key update value = value + " + value + ", timestamp = " + time_stamp);
     }
     }
   }
   }
   self.executeQuerries(querries);
   self.executeQuerries(querries);