|
|
|
16년 전
|
조회 754
|
|
|
|
16년 전
|
조회 822
|
|
|
|
16년 전
|
조회 820
|
|
|
|
16년 전
|
조회 864
|
|
|
|
16년 전
|
조회 1,581
|
|
|
|
16년 전
|
조회 1,694
|
|
|
|
16년 전
|
조회 957
|
|
|
|
16년 전
|
조회 978
|
|
|
|
16년 전
|
조회 928
|
|
|
|
16년 전
|
조회 1,178
|
|
|
|
16년 전
|
조회 906
|
|
|
|
16년 전
|
조회 889
|
|
|
|
16년 전
|
조회 1,268
|
|
|
|
16년 전
|
조회 968
|
|
|
|
16년 전
|
조회 938
|
|
|
|
16년 전
|
조회 1,524
|
|
|
|
16년 전
|
조회 1,085
|
|
|
|
16년 전
|
조회 954
|
|
|
|
16년 전
|
조회 1,178
|
|
|
|
16년 전
|
조회 1,562
|
댓글 2개
코멘트에 있네요.
simpler function to convert a number in bytes, kilobytes....
<?php
function bytes($a) {
$unim = array("B","KB","MB","GB","TB","PB");
$c = 0;
while ($a>=1024) {
$c++;
$a = $a/1024;
}
return number_format($a,($c ? 2 : 0),",",".")." ".$unim[$c];
}
?>
<?
if($list[$i][wr_hit]>1000000) $list[$i][wr_hit]=round(($list[$i][wr_hit]/1000000),1).m;
else if($list[$i][wr_hit]>1000) $list[$i][wr_hit]=round(($list[$i][wr_hit]/1000),1).k;
?>
<?=$list[$i][wr_hit]?>