Changeset 1361
- Timestamp:
- 03/02/05 20:35:53 (8 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
bin/alternc_stats_web.php (modified) (1 diff)
-
bin/stat_conso.php (modified) (1 diff)
-
schemas/mysql.sql (modified) (1 diff)
-
stat.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/alternc_stats_web.php
r1357 r1361 128 128 // On calcule le jour : (= yearmonthday) 129 129 $day=$mat[3].$months[$mat[2]].$mat[1]; 130 if ($mat[4]==200) { // HTTP/1.0 OK ! 131 $domstat[$mat[6]."/".$day]["hit"]++; 132 $domstat[$mat[6]."/".$day]["size"]+=intval($mat[5]); 133 } else { // HTTP/1.0 404, 304, 503 ... ! 134 /* XXX: why don't we cound the size of those??? */ 135 $domstat[$mat[6]."/".$day]["adminhit"]++; 136 } 130 $domstat[$mat[6]."/".$day]["hit"]++; 131 $domstat[$mat[6]."/".$day]["size"]+=intval($mat[5]); 137 132 } else { 138 133 printf("Can't parse: %.60s...\n", $s); -
trunk/bin/stat_conso.php
r1357 r1361 128 128 // On calcule le jour : (= yearmonthday) 129 129 $day=$mat[3].$months[$mat[2]].$mat[1]; 130 if ($mat[4]==200) { // HTTP/1.0 OK ! 131 $domstat[$mat[6]."/".$day]["hit"]++; 132 $domstat[$mat[6]."/".$day]["size"]+=intval($mat[5]); 133 } else { // HTTP/1.0 404, 304, 503 ... ! 134 /* XXX: why don't we cound the size of those??? */ 135 $domstat[$mat[6]."/".$day]["adminhit"]++; 136 } 130 $domstat[$mat[6]."/".$day]["hit"]++; 131 $domstat[$mat[6]."/".$day]["size"]+=intval($mat[5]); 137 132 } else { 138 133 printf("Can't parse: %.60s...\n", $s); -
trunk/schemas/mysql.sql
r1358 r1361 5 5 `hit` int(10) unsigned NOT NULL default '0', 6 6 `size` int(10) unsigned NOT NULL default '0', 7 `adminhit` int(10) unsigned NOT NULL default '0',8 7 PRIMARY KEY (`day`,`domain`), 9 8 KEY `uid` (`uid`) -
trunk/stat.sql
r1358 r1361 5 5 `hit` int(10) unsigned NOT NULL default '0', 6 6 `size` int(10) unsigned NOT NULL default '0', 7 `adminhit` int(10) unsigned NOT NULL default '0',8 7 PRIMARY KEY (`day`,`domain`), 9 8 KEY `uid` (`uid`)
Note: See TracChangeset
for help on using the changeset viewer.
