Skip to content

Instantly share code, notes, and snippets.

View cofyc's full-sized avatar
🎯
Focusing

Yecheng Fu cofyc

🎯
Focusing
View GitHub Profile
@cofyc
cofyc / gist:1202cbdb047dde7a44fa
Created November 10, 2014 13:09
chart_bar.php.fix.48172.diff
Index: chart_bar.php
===================================================================
--- chart_bar.php (版本 48171)
+++ chart_bar.php (版本 48172)
@@ -171,9 +171,9 @@
' sum(num) as count,avg(value_avg) as avg,min(value_min) as min,'.
' max(value_max) as max,max(clock) as clock'.
' FROM trends '.
- ' WHERE itemid='.$itemid.
- ' AND clock>='.$timesince.