~ubuntu-branches/ubuntu/lucid/boinc/lucid

« back to all changes in this revision

Viewing changes to doc/backend_util.php

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas, Frank S. Thomas
  • Date: 2008-05-31 08:02:47 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080531080247-4ce890lp2rc768cr
Tags: 6.2.7-1
[ Frank S. Thomas ]
* New upstream release.
  - BOINC Manager: Redraw disk usage charts immediately after connecting to
    a (different) client. (closes: 463823)
* debian/copyright:
  - Added the instructions from debian/README.Debian-source about how
    repackaged BOINC tarballs can be reproduced because DevRef now
    recommends to put this here instead of in the afore-mentioned file.
  - Updated for the new release.
* Removed the obsolete debian/README.Debian-source.
* For consistency upstream renamed the core client and the command tool
  ("boinc_client" to "boinc" and "boinc_cmd" to "boinccmd"). Done the same
  in all packages and created symlinks with the old names for the binaries
  and man pages. Also added an entry in debian/boinc-client.NEWS explaining
  this change.
* debian/rules: Do not list Makefile.ins in the clean target individually,
  just remove all that can be found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
require_once("docutil.php");
3
 
page_head("Back-end utility functions");
4
 
echo "
5
 
The following functions can be used in your validator and assimilator code:
6
 
<hr>
7
 
 
8
 
".html_text("
9
 
int get_output_file_path(RESULT const&, std::string&);
10
 
"),"
11
 
Returns the path of a result's output file
12
 
(parses result.xml_doc_out and computes the file's position in the
13
 
 <a href=hier_dir.php>hierarchical directory structure</a>).
14
 
 
15
 
".html_text("
16
 
int get_output_file_paths(RESULT const&, vector<string>&);
17
 
"),"
18
 
<p>
19
 
Same, for multiple output files.
20
 
<hr>
21
 
".html_text("
22
 
int try_fopen(char* path, FILE*& f, char* mode);
23
 
")."
24
 
Open a file, distinguishing between recoverable and nonrecoverable errors.
25
 
Returns zero on success.
26
 
Returns ERR_FOPEN if the directory is present but not the file
27
 
(this is considered a nonrecoverable error).
28
 
Returns ERR_OPENDIR if the directory is not there
29
 
(this is generally a recoverable error, like NFS mount failure).
30
 
<hr>
31
 
".html_text("
32
 
double median_mean_credit(vector<RESULT> const& results);
33
 
")."
34
 
Given a vector of N correct results, computes a canonical credit as follows:
35
 
<ul>
36
 
<li> if N==1, return that result's claimed credit
37
 
<li> if N==2, return min of claimed credits
38
 
<li> if N>2, toss out high and low claimed credit,
39
 
and return the average of the rest.
40
 
</ul>
41
 
";
42
 
page_tail();
43
 
?>