slitaz-forge diff tank/web/index.php @ rev 716
mirror/floppies: multi-format support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 23 16:41:12 2021 +0000 (2021-07-23) |
parents | cfad9fa3f53c |
children |
line diff
1.1 --- a/tank/web/index.php Mon Feb 01 10:57:24 2021 +0000 1.2 +++ b/tank/web/index.php Fri Jul 23 16:41:12 2021 +0000 1.3 @@ -48,11 +48,9 @@ 1.4 Tank CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" . 1.5 "s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </etc/cpuinfo |" . 1.6 " awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" . 1.7 - "if (n == 4) printf \"quad \"; print s }' ")?> - 1.8 - <?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ". 1.9 - "n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ". 1.10 - "printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> - Located in Paris, 1.11 - France. Tank is also monitored by RRDtool which provides 1.12 + "if (n == 4) printf \"quad \"; if (n == 8) printf \"octo \"; print s }' ")?> - 1.13 + <?php system("free -g | awk '/Mem:/ { print $2 \"GB RAM\" }'")?> - 1.14 + Located in Paris, France. Tank is also monitored by RRDtool which provides 1.15 <a href="graphs.php">graphical stats</a>. 1.16 </p> 1.17 </div>