Comments (5)
Best with NULL in $v:
function getasstats_top($ntop, $statfile, $selected_links, $list_asn = NULL, $v = NULL) { try{
$db = new SQLite3($statfile);
}catch(Exception $e){
return array();
}
if(sizeof($selected_links) == 0){
$selected_links = array();
foreach(getknownlinks() as $link)
$selected_links[] = $link['tag'];
}
$nlinks = 0;
$query_total = '0';
$query_links = '';
foreach($selected_links as $tag){
if ($v == 4 || $v == NULL) {
} else {
}
$nlinks += 4;
if ($v == 4 || $v == NULL) {
} else {
}
}
from as-stats-gui.
https://github.com/fjbf/as-stats-gui/commit/b5712e57ea48d4d108d0c33cecf62c51f285a7ba
from as-stats-gui.
Hi Francisco, push a PR its more simple.
Thanks for your help.
from as-stats-gui.
PR done (i think).
from as-stats-gui.
see this PR #11
from as-stats-gui.
Related Issues (18)
- disable IPv6 HOT 2
- asstats_week.txt & asstats_month.txt HOT 3
- sqlite error after cloning HOT 3
- SQLite errors HOT 12
- data gathered, top20 counters changing, but graphs "blank" (the image not generated) HOT 2
- Traffic IPv6 0 bytes / Link Usage Tab
- SQLite3 error no such table HOT 4
- size and format of graphs HOT 2
- as-info updated ? HOT 4
- Combine all traffic that traverses an AS
- how change the number of top as? HOT 1
- upstream changes HOT 2
- Missing argument when menu() function is called from history.php HOT 1
- asstats_day.txt Issue ? HOT 3
- Dirty code HOT 2
- Check for valid knownlinks in gengraph too restrictive, missing _ HOT 1
- View IX-Stats error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from as-stats-gui.