summaryrefslogtreecommitdiffstats
path: root/sql/server_update_traffic_stats.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql/server_update_traffic_stats.sql')
-rw-r--r--sql/server_update_traffic_stats.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/server_update_traffic_stats.sql b/sql/server_update_traffic_stats.sql
new file mode 100644
index 0000000..ef6994a
--- /dev/null
+++ b/sql/server_update_traffic_stats.sql
@@ -0,0 +1,6 @@
+update servers set
+ server_month_upload= server_month_upload + :upload:,
+ server_month_download= server_month_download + :download:,
+ server_total_upload= server_total_upload + :upload:,
+ server_total_download= server_total_download + :download:
+ where server_id=:server_id:; \ No newline at end of file