$files = $dbSql->CalculateFilesPeriod($_GET['server'],$dbSql->StartDate,$dbSql->EndDate);
$smarty->assign('startperiod',$dbSql->StartDate);
$smarty->assign('endperiod',$dbSql->EndDate);
-$smarty->assign('bytesperiod',$bytes);
+$smarty->assign('bytesperiod',$dbSql->human_file_size( $bytes ) );
$smarty->assign('filesperiod',$files);
// Array with jobs data
or die("Error query row 56");
while ( $tmp = $res_jobs->fetchRow(DB_FETCHMODE_ASSOC) ) {
- $tdate = explode (":",$tmp['elapsed']); // Temporal "workaround" ;) Fix later
+ $tdate = explode (":",$tmp['elapsed']); // Temporal "workaround" ;) Fix later
if ( $tdate[0] > 300000 )
$tmp['elapsed'] = "00:00:00";
+ $tmp['JobBytes'] = $dbSql->human_file_size( $tmp['JobBytes'] );
+ var_dump( $tmp );
array_push($a_jobs,$tmp);
}
$smarty->assign('jobs',$a_jobs);
{t}Bytes transferred in the period:{/t}
</td>
<td align=right width=15% class=table2>
- {$bytesperiod|fsize_format}
+ {$bytesperiod}
</td>
</tr>
<tr>
<td {popup caption="Sheduled time" text=$jobs[job].SchedTime}>{$jobs[job].StartTime}</td>
<td {popup autostatus=yes caption="EndTime" text=$jobs[job].EndTime}>{$jobs[job].elapsed}</td>
<td align=center>{$jobs[job].Level}</td>
- <td align=right>{$jobs[job].JobBytes|fsize_format}</td>
+ <td align=right>{$jobs[job].JobBytes}</td>
<td align=center width=1%>
{if $jobs[job].JobStatus eq "T"}
<img src={#root#}/images/s_ok.gif>