diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-29 10:41:02 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-29 10:41:02 -0400 |
| commit | c695449b17b13e7711da8a81ab70bc9a147d8d61 (patch) | |
| tree | 29d938790e8d5a07e36f64c75848efed300bb8fb /xdcc.pl | |
| parent | f586071a6f2627972f7d3ed941232f981b41973b (diff) | |
Diffstat (limited to 'xdcc.pl')
| -rw-r--r-- | xdcc.pl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -329,9 +329,9 @@ sub xdcc_get_info { my $ymd = sprintf "%d-%s-%d %d:%02d", $d, $months[$n], 1900+$y, $h, $m; my $bytes; - if ($size < 1024) { $bytes = $size + " b." } - elsif ($size < 1024*1024) { $bytes = int($size/1024) + " kb." } - elsif ($size < 1024*1024*1024) { $bytes = sprintf("%0.1d",int((10*$size)/(1024*1024))) + " kb." } + if ($size < 1024) { $bytes = $size . " b." } + elsif ($size < 1024*1024) { $bytes = int($size/1024) . " kb." } + elsif ($size < 1024*1024*1024) { $bytes = sprintf("%0.1d",int((10*$size)/(1024*1024))) . " kb." } return { id => $id+1, |
