diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-08-03 18:13:52 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-08-03 18:13:52 +0000 |
commit | e8e42b297242a63d7b1f4d128eaf7571c4e9d06c (patch) | |
tree | b8fa21e5d34615878737ea08c52aa17eef98fde0 /rdiff-backup/rdiff_backup/Main.py | |
parent | 6caeb6564ff4bae632bbbcf5348c55996776289e (diff) | |
download | rdiff-backup-e8e42b297242a63d7b1f4d128eaf7571c4e9d06c.tar.gz |
Fixes for --calculate-average, python 2.3, and mac os x
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@371 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/Main.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/Main.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rdiff-backup/rdiff_backup/Main.py b/rdiff-backup/rdiff_backup/Main.py index dc63246..e8167d6 100644 --- a/rdiff-backup/rdiff_backup/Main.py +++ b/rdiff-backup/rdiff_backup/Main.py @@ -24,7 +24,7 @@ import getopt, sys, re, os from log import Log, LoggerError, ErrorLog import Globals, Time, SetConnections, selection, robust, rpath, \ manage, backup, connection, restore, FilenameMapping, \ - Security, Hardlink, regress, C, fs_abilities + Security, Hardlink, regress, C, fs_abilities, statistics action = None @@ -560,8 +560,9 @@ def ListIncrementSizes(rp): def CalculateAverage(rps): """Print out the average of the given statistics files""" - statobjs = map(lambda rp: StatsObj().read_stats_from_rp(rp), rps) - average_stats = StatsObj().set_to_average(statobjs) + statobjs = map(lambda rp: statistics.StatsObj().read_stats_from_rp(rp), + rps) + average_stats = statistics.StatsObj().set_to_average(statobjs) print average_stats.get_stats_logstring( "Average of %d stat files" % len(rps)) |