Welcome, Guest. Please login or register.

Author Topic: html/test/me.php wrong sort  (Read 1227 times)

ascii

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
html/test/me.php wrong sort
« on: December 20, 2012, 09:52:40 AM »
just a small think.
looks like the the offset is off by one.

old code in html/test/me.php
line 53
Code: [Select]
echo "<tr class=\"txta\"><th class=\"imga\" width=\"20\"><img src=\"img/16/grph.png\" title=\"In/Out\"></th><td colspan=\"2\">Traffic: <b class=\"blu code\">".DecFix($n[26])."/".DecFix($n[27])."</b> Errors:<b class=\"drd code\"> ".DecFix($n[28])."/".DecFix($n[29])."</b> Discards:<b class=\"prp code\">".DecFix($n[30])."/".DecFix($n[31])." </b> Bcast:<b class=\"dgy code\"> ".DecFix($n[32])."</b></td></tr>\n"; change to
Code: [Select]
echo "<tr class=\"txta\"><th class=\"imga\" width=\"20\"><img src=\"img/16/grph.png\" title=\"In/Out\"></th><td colspan=\"2\">Traffic: <b class=\"blu code\">".DecFix($n[27])."/".DecFix($n[28])."</b> Errors:<b class=\"drd code\"> ".DecFix($n[29])."/".DecFix($n[30])."</b> Discards:<b class=\"prp code\">".DecFix($n[31])."/".DecFix($n[32])." </b> Bcast:<b class=\"dgy code\"> ".DecFix($n[33])."</b></td></tr>\n";

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2697
    • View Profile
    • NeDi
Re: html/test/me.php wrong sort
« Reply #1 on: December 22, 2012, 01:23:22 AM »
Correct, Peter was faster though :) Tx, anyway

http://forum.nedi.ch/index.php?topic=1241.msg5400#msg5400
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo