Hi all, When I browse a host's backups, there is a size-column showing the file size in bytes.
Can this be changed somewhere to show megabytes, or even gigabytes instead? I've looked in /usr/share/BackupPC/lib/BackupPC/CGI/Browse.pm and found this bit, which looks promising: # # This is the selected directory, so display all the files # my ($attrStr, $iconStr); if ( defined($a = $attr->{$f}) ) { my $mtimeStr = $bpc->timeStamp($a->{mtime}); # UGH -> fix this my $typeStr = BackupPC::Attrib::fileType2Text(undef, $a->{type}); my $modeStr = sprintf("0%o", $a->{mode} & 07777); $iconStr = <<EOF; <img src="$Conf{CgiImageDirURL}/icon-$typeStr.png" valign="top"> EOF $attrStr .= <<EOF; <td align="center" class="fviewborder">$typeStr</td> <td align="center" class="fviewborder">$modeStr</td> <td align="center" class="fviewborder">$a->{backupNum}</td> <td align="right" class="fviewborder">$a->{size}</td> <td align="right" class="fviewborder">$mtimeStr</td> </tr> EOF Can't find where "$a->{size}" comes from though. You got any pointers for me guys? Thanks. -- BW, Sorin ----------------------------------------------------------- # Sorin Srbu, Sysadmin # Uppsala University # Dept of Medicinal Chemistry # Div of Org Pharm Chem # Box 574 # SE-75123 Uppsala # Sweden # # Phone: +46 (0)18-4714482 # Visit: BMC, Husargatan 3, D5:512b # Web: http://www.orgfarm.uu.se ----------------------------------------------------------- # () ASCII ribbon campaign - Against html E-mail # /\ # # This message was not sent from an iProduct! # # MotD follows: # A toothpick is the object most Americans choke on. ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/